vereo
← EuroZipTowns

Help for EuroZipTowns

Version 2.0

Installing

  1. Unpack the archive and copy the folder euroziptowns into htdocs/custom/.
  2. In Dolibarr under Home → Setup → Modules search for «European postcodes & towns» and activate it.

Alternatively the archive can be uploaded directly through Setup → Modules → Deploy external module, provided that option is enabled on your installation.

Nothing is imported on activation — you pick the countries first.

Picking countries

Under Setup → Modules → European postcodes & towns every country has a line with Load, the available and the loaded entries. Tick, save — the import then runs for the countries you picked. France takes the longest; 37,202 rows are a moment's patience, depending on the database.

Clearing a country and saving removes its rows. You can therefore change your mind at any time without tidying up by hand.

Checking that it works

Open a new business partner and type two digits in the postcode field, 80 for instance. A list of matching towns appears; after picking one, the town stands in the field beside it.

If nothing appears, the setup page says why:

  • Ready means the country and the data file are there.
  • Country missing in the dictionary means the country is not present in c_country — then the Dolibarr installation is incomplete.
  • Loaded entries must be above zero. Otherwise press re-import the selected countries now.
  • Postcode/town autocompletion must be enabled.

Moving over from Swiss Zip & Towns

The two modules do not get along, and they say so: the order is deactivate the old one first, then activate this one. On deactivation the old module takes its own rows with it, so nothing ends up in the dictionary twice. Then select Switzerland here — it is the same list of the Swiss Post as before.

Using your own list

Replace data/ziptowns_<country>.csv with your own file: one line per entry, postcode, tab, town, in UTF-8; lines starting with # are skipped. Then press re-import on the setup page.

The tab is not an accident — German and Austrian place names contain commas, and with a comma as the separator half of them would fall apart.

If you want to maintain the bundled datasets yourself, build/build_datasets.py is the script that produces them from the GeoNames dumps.

Removing

Deactivate the module. The rows entered and the settings disappear by themselves; the dictionary is then as it was before. If you only want to get rid of the data but keep the module, use remove all imported postcodes/towns now on the setup page.

What the module does not do

It changes no existing addresses. What is in your records stays — the completion only applies to new input.

Still stuck?

Write to kontakt@vereo.ch. If you have a customer account, open a request there instead — then the whole exchange stays in one place.