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

I'm trying to find a car path that passes via another point. I use YOUR API to find the car path but I don't know how specify that this path must passed in another point.

http://wiki.openstreetmap.org/wiki/YOURS

Anyone can help me?

asked 14 Jul '14, 11:59

scupetta18's gravatar image

scupetta18
-3111115
accept rate: 0%

edited 14 Jul '14, 15:04

sleske's gravatar image

sleske
4.1k135678


It doesn't seem as if YOURS supports via points, OSRM does https://github.com/DennisOSRM/Project-OSRM/wiki/Server-api

permanent link

answered 14 Jul '14, 13:15

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Simon I need a web service to put a request and for my application I need a web service that I can ask frequently. Can you suggest me any advice?

(14 Jul '14, 15:00) scupetta18
2

Well that problem is independent of which software stack you want to use. In general all of the "free" services have usage limits, for obvious reasons. In general you can:

  • roll your own, which tends to be easy if the area you are interested in is not too large
  • subscribe to a service run by a commercial provider (see for example switch2osm.org for a list)
(14 Jul '14, 16:24) SimonPoole ♦

According to the router comparison matrix YOURS supports via-points. It is also possible to specify them via the webinterface (which has horrible bugs). But instead of a single API call for all points the webinterface will run a call for each lat-lon pair instead and then appends them to a single route.

Interestingly when trying to open the permalink on the Info tab it will show a single URL where each via-point is specified with wlat and wlon parameters. But this URL won't work and the route will just use the start and end points, ignoring all via points.

permanent link

answered 14 Jul '14, 16:19

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

Scai I clik on the permalink and I see wlat and wlon and I need to work but how you said it desn't work. How do I resolve my problem if it doesn't work? So I must call the path between first point and third point and third point end point? is it only solution?

(14 Jul '14, 16:29) scupetta18

Either like the webinterface does it by running multiple calls and appending them to each other. Or by using one of the many other OSM-based online routers.

(14 Jul '14, 16:38) scai ♦

But I read in wikipedia documentation that I haven't do a lot of request on the server to avoid to crash it but I can do all request that I want. The other OSM have the same limits?

(14 Jul '14, 16:50) scupetta18

Each service has a different limit but neither of them can be used unlimited because that would be really expensive for the service operator. If you need to run lots of queries better choose one of these routers and install it locally on one of your own servers.

(14 Jul '14, 17:59) scai ♦

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:

×305
×12
×5

question asked: 14 Jul '14, 11:59

question was seen: 10,021 times

last updated: 14 Jul '14, 17:59

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