• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Google Map element and Geocoding Eircodes

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

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?
 
I read the pages, but what's the actual solution?

Your Stack Exhange question is about the Places API, but we use the Geocode API in the map element.

-- hugh
 
Hi Hugh thanks I'm not sure where the problem lies.
I had used the above example to illustrate how i had fixed a distance matrix lookup using google maps and eircode.
E.g take a look at my registration page you an see a Google map with "enter Eircode" field and Geocode button:
https://alfaonlineclaims.ie/index.php?option=com_fabrik&view=form&formid=2&Itemid=137
Enter a valid UK postcode e.g. : LL652EZ - the lookup works
Enter a valid Eircode e.g : V92H3F8 - there is a console message: mootools-ext.js:157 V92H3F8 not found!
In google maps the url for the eircode lookup looks like this and is geocoded correctly:
https://www.google.com/maps/place/K...09d0a52f13c1cf!8m2!3d52.2327073!4d-10.1176783
I must stress that this eircode lookup used to work perfectly with the Fabrik Google Map Element.
My stackexchange post illustrates how google seems to have changed their methods of looking up country zip codes.
Thanks
 
hmm,
if I clear cookies and then search for
V93 E5F7 or V93E5F7
in maps.google.ch
it doesn't find it.
If I search for V93 E5F7+ire it's finding the place, saying something like "partly match"
upload_2018-9-12_10-23-33.png

It's the same with searching for "V93 E5F7 something", so not related to "ire"
So it seems to be a Google issue.

Canadien or British codes (V5X 1A9, eh10 4qa) are found directly.
 
Ok thanks for the reply - I had to geocode using elements - eircode then works in with the google map element.
 
OK, looking at your site, you seem to have added a "+ire" hidden element ('ireland') which adds to the address we send Google. Presumably that gives them enough context to get it right.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top