I want to create an android project about street intersections! Like I choose a street name, starting point and the radius. Then the program gives me an array of the The streets that cross that one in that radius as a list of street names in another list activity. When I choose one of the streets I want to be redirected to the map at their intersection point. So how can I use a openStreetMap API.To create this? Any suggestions are pleased.
This question is marked "community wiki".
asked 07 Sep '15, 11:52 AzaWiza |
Except in a very loose way, the answer is no. The OSM API is primarly for editing OSM data and doesn't do very much outside of providing you with the data for a specific region. The Overpass API provides more in the way of advanced queries, but I suspect your requirements will require loading OSM data in to a geo-aware database (for example Postgres with the PostGIS extension) and performing the corresponding spatial queries yourself. Before you do that you should read up on the OSM data model and the various possible database schemas. answered 08 Sep '15, 08:36 SimonPoole ♦ That is exactly what I was Looking for! Thank you! Are there any way to send a query to overpass turbo from an android device? Like Now I have OSM map on my android devidce. by choosing a specia area there, Can I write a query in getText field like this one
(10 Sep '15, 03:21)
AzaWiza
1
Sure, this is possible. Just send a corresponding HTTP request and parse the response. See the various examples in the Overpass API language guide.
(10 Sep '15, 07:43)
scai ♦
You should mind your terminology though. Overpass Turbo is a website build around Overpass API which just makes it easier to write queries. A bit like an IDE build around a compiler. Overpass API is one of the public instances that you can call via HTTP requests. However, Overpass API may also refer to the open-source software used to power the public instances.
(12 Sep '15, 11:48)
Sanderd17
1
Did you perhaps mean: overpass-api.de is one of the public Overpass API instances (in fact it's the main instance) that you can call via HTTP requests? Some of the other public instances are listed here.
(12 Sep '15, 13:54)
mmd
|