Can the Geocoder plugin geocode Google Plus Codes? If so...what's needed?

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,

Daniel
Technical Lead
interactivetools.com