Is there an API for OpenStreetMap that I can get a residential street name when passing city, state to it?

asked 02 Jan, 04:15

Xavier%20hammond's gravatar image

Xavier hammond
11
accept rate: 0%

edited 03 Jan, 20:03

aseerel4c26's gravatar image

aseerel4c26 ♦
31.7k15235543


There are lots of different things that have built within the OSM ecosystem, so I can't rule out the possibility entirely, but it seems unlikely that there are any existing tools that have been designed to return a random street. You'd probably have to come up with your own custom-built solution. One way to do this would be to get the boundary of the city, select a random set of coordinates within that area, and then query a reverse geocoder to get a street near those coordinates.

permanent link

answered 02 Jan, 19:56

alester's gravatar image

alester
4.7k24869
accept rate: 30%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×523
×150
×101

question asked: 02 Jan, 04:15

question was seen: 119 times

last updated: 03 Jan, 20:03

powered by OSQA