I have following Overpass api quer that takes the name of the road and give back entire road coordinates
http://overpass-api.de/api/interpreter?data=[out:json][timeout:25];(node["name"="%@"];way["name"="%@"];relation["name"="%@"];);(node["ref"="%@"];way["ref"="%@"];relation["ref"="%@"];);out body;>;out skel qt;
I am using following query to get the name of road from coordinates
http://nominatim.openstreetmap.org/reverse?format=json&lat=%f&lon=%f&zoom=18&addressdetails=1
NSDictionary *dict = [response JSONValue];
//NSString *placeId = [dict objectForKey:@"place_id"];
//NSString *osmId = [dict objectForKey:@"osm_id"];
NSDictionary *roadDict = [dict objectForKey:@"address"];
NSString *roadName = [roadDict objectForKey:@"road"];
Currently i have an example of Roadname @"John F Foran Freeway"
using coordinates
[[CLLocation alloc] initWithLatitude:37.731267 longitude:-122.423580];
When i use this roadname in my overpass api. I get no results. Why its not detecting the road? Sometimes on few roadnames it work but mostly it don't recognize the road name. What is wrong?
http://overpass-api.de/api/interpreter?data=[out:json][timeout:25];(node["name"="John F Foran Freeway"];way["name"="John F Foran Freeway"];relation["name"="John F Foran Freeway"];);(node["ref"="John F Foran Freeway"];way["ref"="John F Foran Freeway"];relation["ref"="John F Foran Freeway"];);out body;>;out skel qt;