Calculate a route between two points
routing.route(RoutingRouteParams**kwargs) -> RouteResult
POST/api/v1/route
Calculate a route between two points
import os
from plaza import Plaza
client = Plaza(
api_key=os.environ.get("PLAZA_API_KEY"), # This is the default and can be omitted
)
route_result = client.routing.route(
destination={
"coordinates": [0],
"type": "Point",
},
origin={
"coordinates": [0],
"type": "Point",
},
)
print(route_result.geometry)