Plus Code to Address String Conversion

156 views
Skip to first unread message

Pankaj Raina

unread,
Jul 30, 2020, 6:33:32 AM7/30/20
to Plus Codes Community Forum
Can we convert Plus Codes to corresponding address strings using OLC in python.

Please help in this.

Regards,
Pankaj

Barry Hunter

unread,
Jul 30, 2020, 7:00:58 AM7/30/20
to Pankaj Raina, Plus Codes Community Forum
Not on its own. Need a (Reverse) Geocoder. 

Can convert a Plus Code to lat/long coordinates purely in code (unless it's a 'shortened' code, then may need a geocoder to decode the 'Locality Reference' - unless can deduce it from local context)

Once have coordinates can then use a Reverse Geocoder to convert to a 'Address String'. This can't typically be done in pure python because it needs a database of places/gazetteer to synthesise the address. 


Ironically PlusCodes are kinda intended to be an alternative to address. To be an identifier for places that dont have 'formal' addresses; in countries that have a formal addressing system, probably dont need a Plus Code. 
... i.e. places that dont have addresses (ie a reverse geocoder wont work!) is a major 'use case' for plus codes. 

So if someone is using a plus code to refer to a place, it seems a fair chance that it means that an actual 'address' doesnt really exist, and as such trying to convert to a 'address string' will likely fail. (or a smart reverse geocoder would create the address using a plus code, bringing you full circle) 





--
Public site: http://www.openlocationcode.com/
Github project: https://github.com/google/open-location-code
Demo site: http://plus.codes/
---
You received this message because you are subscribed to the Google Groups "Plus Codes Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-location-c...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/open-location-code/61a1fc3d-f339-4124-835b-8362daa95ecao%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages