A custom DatoCMS field extension plugin that allows users to select multiple postcodes with an autocomplete search interface. Uses GeoNames API to search for postcodes by postcode or city name.
Features
🔍 Autocomplete Search: Type to search for postcodes or city names
🏷️ Multiple Selection: Select multiple postcodes with an accessible multi-select interface
🌍 Configurable Country: Set the country code in plugin settings (defaults to Belgium)
🔑 GeoNames Username: Optional GeoNames username for higher rate limits
🌐 API-Based: Uses GeoNames API to fetch postcode data (no hardcoded data)
Installation
Build the plugin:
Terminal window
1
npminstall
2
npmrunbuild
Install the plugin in your DatoCMS project:
Go to your DatoCMS project settings
Navigate to Plugins
Click "Add a plugin" → "Install from URL" or upload the built plugin
Usage
Configure the plugin:
Go to Settings → Plugins → Postcode Picker
Enter your GeoNames username for higher rate limits (optional)
Set the country code (ISO 3166-1 alpha-2, e.g., BE, NL, FR)