Draw route/rota between two cities


I need to draw car/driving route between two cities like in the picture . I got lattitude and longtitude of 2 cities. I need to draw path . Can openrouteservice do this with python code language ? Im new here so I will glad If anyone give me advice.

Check this out https://maps.openrouteservice.org/directions?n1=36.173357&n2=-110.236816&n3=6&a=37.71859,-122.387695,37.09024,-107.95166&b=0&c=0&k1=en-US&k2=km

Im sorry ı forgot to mention about coding. I need to do this with python language.

I need to do this with python language.

Then you might want to try openrouteservice-py client.

thanks . I hope It can do what I want.

Update : It’s really hard to do what I what with openrouteservice I couldnt find any useful thing. I wish there is good&easy documentation/tutorial about openrouteservice and some examples about routes/draw plots.
In gmaps I can do what I want with these lines
import gmaps
#configure api
gmaps.configure(api_key=api_key)

#Define location 1 and 2
Durango = (37.2753,-107.880067)
SF = (37.7749,-122.419416)

#Create the map
fig = gmaps.figure()

#create the layer
layer = gmaps.directions.Directions(Durango, SF,mode=‘car’)

#Add the layer
fig.add_layer(layer)
fig

But I dont want to use gmaps so Im here to search.

Did you read the README? That tells you how to use the library.

Did you read the API docs? https://openrouteservice.org/dev/#/api-docs/directions/get

It’s really all just there in the open. If you have a specific question, post it here. Otherwise you’ll have to invest some time to make it work. We can’t guess what you’re doing and especially not what you’re doing wrong.

Okay thanks again. I will try look after myself