Can the Geocoder plugin geocode Google Plus Codes? If so...what's needed?
3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: August 22, 2022 (RSS)
By Codee - August 20, 2022
Hello I.T.,
Can the Geocoder (1.09) plugin geocode google plus codes? How do we make that happen? I did add a field "googleplus" but it does not geocode when the plugin runs. It's obviously not finding the field by it's field name in this case.
Thank you in advance!
By daniel - August 22, 2022
Hi Codee,
The regular geolocation API doesn't support Plus Codes, so the current geocoder plugin isn't able to do this conversion. It wouldn't be a huge departure to modify the plugin to handle it, but it would require some custom work. If you'd be interested in having the plugin customized, please send us an estimate request and we can provide some more detailed info on the work required: https://www.interactivetools.com/estimate/
Depending on how you're using the lat/long values, there is a JS library that can convert the codes (https://github.com/google/open-location-code/tree/main/js) - so for example, this could be used to get the lat/long when placing a marker on a map by decoding the Plus Code on the fly, rather than storing/fetching the lat/long separately.
Also, for reference, here's the Plus Code API documentation, if that's at all useful for your purposes: https://github.com/google/open-location-code/wiki/Plus-codes-API
Let me know if you have any questions!
Thanks,
Technical Lead
interactivetools.com
By Codee - August 22, 2022
Hi Daniel,
Actually in the newer Google resources they can assign one API key that works for multiple APIs ~ if that makes a difference. I wouldn't know.
I will definitely review the documentation link. Thank you. After that I will decide if its necessary to request a modified plugin. Thank you kindly!