3 ms·
I haven't found a better way do this than the Google maps solution [0]: You write a query of all the different kinds of addresses you'd like to display. The qu
by AlotOfReading 2y ago
I haven't found a better way do this than the Google maps solution [0]:
You write a query of all the different kinds of addresses you'd like to display. The query result is a list of valid candidate addresses for the point matching at least one format that you can rank based on whatever criteria you like.
[0] https://developers.google.com/maps/documentation/geocoding/requests-reverse-geocoding https://developers.google.com/maps/documentation/geocoding/r...
- mvdtnz 2y agoIt sounds like the author is more interested in getting city or town names from a coordinate. Google maps is massively overkill and horrendously expensive for this use case. I mentioned in another comment I do this in a game I wrote and can complete queries in microseconds. https://news.ycombinator.com/item?id=43814231 https://news.ycombinator.com/item?id=43814231