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

Hi, I'm doing a program on nodejs where I need to know how close I am to a point. I have two points represented by coordinates and I need the minutes it would take to get from one point to another. The request or query would be to the global OSM, I cannot have an instance of this. Would this be possible?

Thank you very much.

asked 16 May '18, 11:08

Wolfindel's gravatar image

accept rate: 0%


I suggest you have a look at :

Both are routing API based on OpenStreetMap data. You can test both here :

permanent link

answered 16 May '18, 15:59

jbelien's gravatar image

accept rate: 16%

Thank you so much for the answer.

"" is paid but "" is free and works well. However, with this one you can only make a few requests and I need to make several in a row, so I don't think that with that limitation it will work for me. He complains about the following when making several inquiries"{ message: 'Too Many Requests' }".

Can I get the html from the code of a route request on OSM?

For example, from this query "" keep the minutes of arrival.

Thank you very much.

(24 May '18, 11:51) Wolfindel

The route request on OSM uses GraphHopper or OSRM. That's why I suggested to use those :)

If you need a free and open-source solution without any request limitation, have a look at Itinero Routing API (developed by Ben Abelshausen) :

I published a tutorial on how to install (and use) it :

(24 May '18, 12:07) jbelien

Installing Graphhopper locally is relatively simple. Or try pgrouting on PostGIS (osm2po is a simple to use tool to populate the DB)

(24 May '18, 12:37) SK53 ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 16 May '18, 11:08

question was seen: 2,533 times

last updated: 24 May '18, 12:37

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