Routes from Polylines (GeoJson)

Hi Everybody! I’m a new costumer of TomTom.
My question is what API endpoint should i use in order to create routes from PolyLines i’m working with Folium in Python where is possible to draw your custom path, then you can have access to a Json file which contains the route information in GeoSjon format like this:

{“type”:“FeatureCollection”,“features”:[{“type”:“Feature”,“properties”:{},“geometry”:{“type”:“LineString”,“coordinates”:[[-46.827292,-23.677307],[-46.830726,-23.674713],[-46.831756,-23.673573],[-46.832271,-23.672394],[-46.832528,-23.670547],[-46.832271,-23.669407],[-46.830854,-23.665201]]}}]}

Which Tomtom’s api endpoint is recommended to pass this coordinates and receive the time travel with traffic information in Json Format. I’m able to get this data using the calculateRoute endpoint by giving origin and destination coordinates, but it does not solve my question.

I have searched into the documentation and didn’t find anything that specifically guides through this method.

Thanks a lot, i appreciate the services.

There is no service that accepts GeoJson to calculate a route.
You can just extract points and use them to reconstruct a route.

1 Like