I want to get few results from Openstreetmaps data. Such as I will submit a city/postal code and in return I want to get all street name within the city/postal code. This can easily done by full OSM setup and PostGIS but for this few need I do not want to setup huge database. Is there any way to retrieve the data? There is an old API called openstreetmap API v.0.6. But I am not sure whether it can fulfill my purpose or not.

  • 1
    Main OSM API should be used only for editing purpose, contributing to database. Not for queries. Use Overpass-api for queries.
    – neogeomat
    Aug 18 '13 at 10:00

Mapquest uses OpenstreetMap data in there Open Data products.

Services that Mapquest provide are available for free and these services can be consumed directly:

  • Open Directions API Web Service
  • Open Guidance API Web Service
  • Open Geocoding API Web Service
  • Open Static Map Web Service
  • Open Elevation API Web Service
  • Nominatim API Web Service
  • Xapi API Web Service


  • Thank you very much for expertise answer. Can you let me know a little bit by which API I can query a postal code that returns all the street names within the postcode? Aug 19 '13 at 4:18
  • example: mapquestapi.com/geocoding/v1/…
    – Mapperz
    Aug 19 '13 at 14:00

Look out for the Overpass API. It allows better filtering than the original OSM API, and is much quicker.

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.