CG ZipCode plugin

  • Code Postal: 95450,GOUZANGREZ,insee : 95282,GPS Long. : 49.1138,Lat. : 1.90836
1 1 1 1 1 Rating 0.00 (0 Votes)

User Rating: 0 / 5

Compat icon 3 x longfirst look joomla 4CG ZipCode custom field plugin display city information from its postal code.

 

Version 1.0.4 : update method change
Version 1.0.3 : international version
Version 1.0.2 : first version (December 2019)

Download CG ZipCode plugin
(version 1.0.4)

(downloaded 183 times)

 

Important : activate CG ZipCode plugin.

CG ZipCode custom field plugin displays city's information from its postal code: city name, INSEE code, GPS info.

If configured to be used in France, information are extracted from geo.api.gouv.fr.

Any other country, information are extracted from nominatim.openstreetmap.org.

CG ZipCode plugin may be used in articlesuser or contact form.

French version may be found in my contact form. Entering 95450 should display 16 answers. Entering 95450 GO will give you info. from a nice village in Vexin.

International version is in my english contact form configured for US postal codes. Try 30341 and you'll have information about Atlanta (where I spent some time).

Custom fields in contact form are explained  in the following link : https://www.joomlashack.com/blog/tutorials/contact-custom-fields/

Content Security Policy : CG ZipCode plugin uses external databases. You'll have to add public.opendatasoft.com (France) or/and nominatim.openstreetmap.org (international mode) in connect-src section.

How CG ZipCode plugin works : you may enter a postal code or state + postal code. 

cg zipcode

Select fields you'd like to display.

You may also want not to display any field but display them in your own custom fields.

Just add to your custom fields (tab "Parameters", "field class") one of following classes :

  • cgcity : city name
  • cginsee : insee code
  • cglong : longitude
  • cglat : lattitude 

Version 1.0.3 introduces a default country parameter.

Enter a 2 characters country code, from to ISO 3166-1 definition.