For an app I'm developing, I want to use the phone's GPS to locate it. I then want it to list streets that are nearby. The customer might be in his back garden for example, and this may be closer to another street, but not be the street he actually lives on.

I am thinking, I can ask the API several times and skew the coordinates slightly in each request. But that might be expensive in money and time.

Is there an API that can do such a thing in one request?

  • 1
    You're actually looking for a service that does that? Online? Jun 11, 2012 at 12:38
  • Yes, if it exists. Is there another approach I can take? All I'm concerned about is that the user can correct the suggested street by selecting from a list, instead of having to key it in.
    – Jepper
    Jun 11, 2012 at 12:59

4 Answers 4


You can send the Phone's GPS position to Yahoo Place Finder (API) request


lat/lng=37.787082,-122.400929 (GPS cords)

<?xml version="1.0" encoding="UTF-8"?>  
<ResultSet version="1.0">  
  <ErrorMessage>No error</ErrorMessage>  
    <name>37.787082 -122.400929</name>  
    <line1>655 Mission St</line1>  
    <line2>San Francisco, CA  94105-4126</line2>  
    <line4>United States</line4>  
    <street>Mission St</street>  
    <city>San Francisco</city>  
    <county>San Francisco County</county>  
    <country>United States</country>  

Extract your street from this response.

  • This will give you the single nearest street. I think the OP wants to find a list (or range) or nearby streets. Can PlaceFinder do that?
    – Jeffrey
    Jun 11, 2012 at 22:22
  • With the Bounding Box option flag - yes "Defines the extent of a box that encloses an area. Returned if P flag is not set and X flag is set."
    – Mapperz
    Jun 12, 2012 at 13:23

What you're looking for is a service that can offer reverse-geocoding to get an approximate street address location and then using the ZIP+4 street data, determine the surrounding streets. Google offers a reverse-geocoding API. From there, you can use the street data (with geo-coordinates) from the US Census Bureau TIGER data to determine proximity.

You will need to determine your definition of "close". Do you want all the streets within a certain radius – rural addresses may fail in this case – or do you want to just list the first 10 streets regardless of distance away from the location? Remember, that the TIGER data gives a start and stop point for each street based on the intersections so there may be a street that is closer to the destination but might be incorrectly displayed as further away if the end points are not very proximate to the location. In that case, perhaps you could first determine the median centerpoint coordinates for each street within a larger subset and use that to determine proximity.

With that said, I have also not seen a service exactly like what you are seeking. I work at an address verification company called SmartyStreets and we are working on something that does this with our API but it's not finished yet so don't tell anyone.

Wait, is this forum public? D'oh! (It's just not done yet so I can't show you anything yet.)

  • I'll keep your secret under tight cover :) Good points - the best I can say is that it should return no more than 5-6 streets in urban settings - or what can fit in a smartphone display along with a small map. Within a radius is probably the best option, meaning rural areas should yield only one street.
    – Jepper
    Jun 12, 2012 at 7:41

I am not aware of any and if there really isn't one, you're left with creating a thin intermediate service to externalise the extra calls. You'd pass it the coordinates like usually and it would return the nearest few streets. Either by calling standard services multiple times with slightly shifted coordinates (like you mentioned) or by doing a nicer spatial query - checking for intersections between vector street data and a fixed buffer around the passed coordinates. You probably don't have all the required data for the latter though, since OSM coverage is partial.


Please use this link to get exact result you want .



there are several services like find nearby streets & find nearby intersection.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.