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

I am working on a route planning application and I would like to used your REST API, but I need to know if your API allows you to enter a vehicle, start and end of the route, waypoints of up to 80 in the request. The start and end of the route + waypoints will be in Lat Lon format. This planed route will be use for country The Czech Republic.

The result of the response should include: a) Total distance traveled b) Waypoints re-order so as to minimize travel costs.

I don't need to display a map and the number of requests does not exceed 500 per month.

Thank you very much for your answer

asked 15 May '20, 21:13

Milan's gravatar image

Milan
11112
accept rate: 0%


There is no "your API" in this cases, the routing engines demoed on openstreetmap.org are kindly provided by third parties.

Direct API access and available features needs to be discussed with the operators directly (AFAIK all them allow via-points and 500 queries sounds low). Multiple of the routing engines are open source software so you in principle could run one yourself, but with 500 queries/month that is unlikely to make sense.

See https://wiki.openstreetmap.org/wiki/List_of_OSM-based_services#Routing for more information.

permanent link

answered 16 May '20, 09:02

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Thank you very much for link, may I'll find some sollution.

(16 May '20, 11:27) Milan
1

Note that the Fossgis OSRM may work for you, OSM API documentation http://project-osrm.org/docs/v5.22.0/api/#general-options

(16 May '20, 11:45) SimonPoole ♦

To SimonPoole: Thank you for your tip i have already sent e-mail to project-osrm.org with my requests.

(16 May '20, 12:19) Milan

AFAIK the OSRM project no longer has a working public instance. so you really need to talk to FOSSGIS that operates http://routing.openstreetmap.de/

(16 May '20, 12:36) SimonPoole ♦

Routing engines will only gives you the route of the locations in the given order. To obtain the minimized trip, your are actually looking for tools solving Vehicle Routing Problems : https://en.wikipedia.org/wiki/Vehicle_routing_problem

Various open source projects are available at this purpose and maintained by private companies, which provides APIs for theses projects.

Note: my opinion may be oriented as I work at Mapotempo.

permanent link

answered 18 May '20, 09:32

Sheeplieder's gravatar image

Sheeplieder
21114
accept rate: 0%

1

Worth noting that OSRM does have a simple TSP solver built in, though it's much more rudimentary than the above.

(18 May '20, 12:39) Richard ♦

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:

×179
×35
×2

question asked: 15 May '20, 21:13

question was seen: 5,356 times

last updated: 18 May '20, 12:39

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