GraphHopper.com | Forum | GitHub | Maps | Blog

Get exact geo coordinates along an entire route with each intersection


#1

Hi there,
I am looking for an API that can get the exact geo coordinates along an entire route with every single intersection that went through.

For example:
I have a starting location and time (latitude , longitude, time) and ending location and time (latitude , longitude, time ). Can I find the route with all the intersections that went thru between the starting and ending location? Is that possible?


#2

It is likely that you can achieve this via requesting the path details with edge_id:

details=edge_id

As every “edge” connects junctions you should get all the coordinates of the junctions. Although sometimes when a speed changes on a road the edge will be splitted … so certain points are not real intersections just coordinates with a speed sign. Have created an issue for it.

Or did I misunderstand your question?


#3

Hmm… let me give you an example. I will use Manhattan, NY.
Starting location 328 E 55th St #122, New York, NY 10022, USA ( 40.757482, -73.965040 )

Ending location 150 E 50th St, New York, NY 10022, USA (40.755541, -73.970034)

There should be 3 edges. The route would be driving on E55th Street and turn to Lexington Ave and then turn to E50th Ave. I basically want all the coordinates of the intersection between Lexington Ave with E55th St., E54th St., E53th St., E52th St., E51st and E50th St. Is that possible?


#4

It should be. See the blue dots on the map:

https://graphhopper.com/maps/?point=40.757482,%20-73.965040&point=40.755541,%20-73.970034&details=edge_id&instructions=false&debug=true


#5

Thanks Karussell!
That’s exactly what I want. Sorry, I am very new in API stuff. Can I get this into a dataset and not on a map ?


#6

It looks like I forgot to link to New Routing API Feature: path details and support for avoiding motorway/ferry/toll so use the Routing API with details=edge_id