iphonegoogle-mapsopenstreetmapbing-maps

Getting Geographic Information Systems GIS of a Street / Road in any Maps Api


I am trying to Get Entire Road Data in my application. Let's say I have a road named as Abc Street or Xyz road, I want to get atleast its starting geo point and final/ending geo point so that i can draw a polyline over the entire road.

I am wondering if there are any api features in Any map apis out there. Google/Apple/OpenStreet/Bing etc

OpenStreet maps allow you to download "ways" entire file. however downloading and appending a GB file inside my app will be no good. Any easier way would be appreciated

I have tried using this query

<osm-script output="json">
  <query type="way">
    <has-kv k="highway" regv="Nimitz Freeway"/>
  </query>
  <print/>
</osm-script>

Nimitz Freeway is a quite popular Highway in oakland USA however using

OverPassTurbo

The results are unsuccessful. Perhaps if anyone can help me do a little more understanding of this api


Solution

  • In case of OpenStreetMap you can download individual roads using the Overpass API. In your case a query for name and rough location seems to fit. The correct tag for roads is the highway tag.