ontarget
Active Member
Ireland have introduced a zip / post code system called Eircode.
If you enter a valid eircode e.g "V93 E5F7" or "V92 Yp93" into google maps it will pick out the location. However in Fabrik the Google map element this functionality no longer works.
I think its due to the json request as i have fixed it on a custom eircode lookup previously:
See the following from the Google dev team who responded to my request and my post on stack overflow:
https://stackoverflow.com/questions/48923952/eircode-not-working-in-google-distance-matrix-api
Can you please let me know if anything can be done?
If you enter a valid eircode e.g "V93 E5F7" or "V92 Yp93" into google maps it will pick out the location. However in Fabrik the Google map element this functionality no longer works.
I think its due to the json request as i have fixed it on a custom eircode lookup previously:
See the following from the Google dev team who responded to my request and my post on stack overflow:
https://stackoverflow.com/questions/48923952/eircode-not-working-in-google-distance-matrix-api
Place Autocomplete has proven to be more reliable to find postal codes, at least in countries with 4-digit and 5-digit postal codes:
https://issuetracker.google.com/75985322#comment20
https://issuetracker.google.com/73030863#comment8
Directions and Distance Matrix waypoints (including origins and destinations) can be specified using the Place IDs from Place Autocomplete, no need to send a Place Details (or Geocoding API) request to obtain the latlng for the Place ID. It is in fact better, when requesting directions, to use Place IDs than address or latlngs, although that is a longer discussion.
Request for Eircodes will need to include the blank space in their names:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=V92+YP93&types=(regions)&components=country:IE
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=V93+E5F7&types=(regions)&components=country:IE
Please note that due to the large amount of Eircodes, there are no conclusive results yet as to which request format yields the best results. That said, Place Autocomplete appears to outperform Geocoding API even in countries with postal codes similar to Eircodes, such as Canada and Netherlands.
Can you please let me know if anything can be done?