Domanda

I would like to retrieve a list of all the street addresses within a small range on a geopoint.

A scenario for use is for a user to select his/her current address from a list of addresses (within say 50 meters) of current location, since location retrieval is not going to be accurate enough.

I am wondering if that is possible using Google maps API? Otherwise does anyone knows an alternative API that I can use for this purpose?

From what I've seen, although the Google maps reverse geocoding service returns a number of "addresses" for a geopoint they are usually just different representations of the address, rather than addresses near location.

I've seen some similar questions on SO but none had the answers I am looking for.

È stato utile?

Soluzione

I was able to get the kind of results I was looking for using a combination of APIs.

First I get the names of the nearby streets using Geonames' "Find nearby streets"

Then for each street I get a geopoint and run it by TomTom's Reverse Geocoding method of their Map Toolkit API, that gives me the min and max street number values for each of the streets.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top