CG ZipCode plugin

  • Code Postal: 95450,GOUZANGREZ,insee : 95282,GPS Long. : 49.1138,Lat. : 1.90836
1 1 1 1 1
Rating 5.00 (1 Vote)

Compat icon 4 xCompat icon 5 0CG ZipCode custom field plugin display city information from its postal code.

 

Version 2.2.0 (Update : 03/10/2025)
  • ^ Use ConseilGouz Library
  • ^ Display plugin's version
  • ^ Use SubscriberInterface
Version 2.1.2 (Update : 16/09/2024)
  • # CGAddress plugin conflict
  • # Script.php : missing delete function
Version 2.1.1 (Update : 12/10/2023)
  • # Joomla 5.x compatibility
Version 2.1.0 (Update : 25/09/2023)
  • # Joomla 5.x compatibility
  • ^ Convert field plugin to service provider
Version 2.0.4 (Update : 15/11/2022)
  • + fr : search in cedex if not found
Version 2.0.3 (Update : 15/11/2022)
  • # cleanup code
...Version 1.0.2 : first version (December 2019)

  • Joomla! 4.x/5.x/6.x
  • Joomla! 3.x
Download CG ZipCode Plugin

Download prohibited

(already downloaded 351 times)

Note : This version is not maintained anymore.

Download CG ZipCode plugin

Download prohibited

(downloaded 557 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 articles, user 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.