NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

asked 02 Jan '19, 04:15

Xavier%20hammond's gravatar image

Xavier hammond
1111
accept rate: 0%

edited 03 Jan '19, 20:03

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


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, 19:56

alester's gravatar image

alester
6.6k266100
accept rate: 28%

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:

×689
×202
×142

question asked: 02 Jan '19, 04:15

question was seen: 2,292 times

last updated: 03 Jan '19, 20:03

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum