I'm tring to write an application that use REST operation to obtain data for web service. I want know what is the IP address of JOSM's web service (if it's possible). What is the URL that can I use? Can anyone help me? asked 03 Jul '14, 22:59 scupetta18 aseerel4c26 ♦ |
Presumably you're either (a) looking for the URL of a router (which JOSM isn't) or (b) looking to download some OSM data so that you can write a router to route between two locations? Assuming it's (b), the OpenStreetMap API is for mapping, so isn't really suitable for your purposes, but Overpass may do what you want. However do be aware that if you want a reasonably large amount of data it would be more efficient to just download an extract of the area you want once rather than continually accessing an API. answered 03 Jul '14, 23:42 SomeoneElse ♦ SomeoneElse thanks for your advices. I want to ask you how I can take the result of Overpass from java code. Have I to use HTTP request?
(04 Jul '14, 01:49)
scupetta18
1
Yes, but how you do that will depend on the language and environment that you're using, and is out of the scope of this OpenStreetMap help site. In Java, for example, a web search finds half a million examples.
(04 Jul '14, 09:09)
SomeoneElse ♦
Ok I use OSM API with REST operation to obtain data.. But do you know if I can obtain the car path between two Point?
(04 Jul '14, 17:21)
scupetta18
1
I'd start by reading this answer to a previous question - it links to the information that we have available.
(04 Jul '14, 17:32)
SomeoneElse ♦
Yes thank very much... I think that I can use OSM API to write the query!! Now I read some tutorial!! Thanks much!
(04 Jul '14, 17:48)
scupetta18
|
JOSM uses several web services (the OSM API and various sorts of imagery) and can use several others (e.g. Overpass).
Are you looking for "a source of map data", "a source of imagery" or "an example API"?
what is "JOSM's web service"?
My purpose is select the car path between two Point and draw this path but I have use REST so I need a valid url to use.. What url can I use?
"My purpose is select the car path between two Point and draw this path" … so you are looking for a routing webservice? In this case your question is very confusing because JOSM is anything but routing. JOSM is an editor (to be used by OSM contributors).