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

Hi

Please help me making a query towards Overpass API. As input I'd like to give two coordinates and as output I'd like to get driving distance.

cURL example would be much appreciated, but anything goes.

asked 14 Aug '21, 11:48

Ehitajah2rra's gravatar image

Ehitajah2rra
16112
accept rate: 0%


Overpass cannot do that. You need a routing engine like Graphhopper or OSRM. You can install these programs on your own server(s) if you need to make a lot of requests, but if you're just making a few you can use the free public instances. For OSRM, see http://project-osrm.org/docs/v5.24.0/api/# which has working curl examples. For Graphhopper, see https://graphhopper.com/

permanent link

answered 14 Aug '21, 12:40

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Thank You so much!

(14 Aug '21, 13:40) Ehitajah2rra
Your answer
toggle preview

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:

×483

question asked: 14 Aug '21, 11:48

question was seen: 1,626 times

last updated: 14 Aug '21, 13:40

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