Calculate a route between two points
routing.route(**kwargs) -> RouteResult { geometry, properties, type }
POST/api/v1/route
Calculate a route between two points
require "plaza"
plaza = Plaza::Client.new(
api_key: "My API Key",
environment: "local" # defaults to "production"
)
route_result = plaza.routing.route(
destination: {coordinates: [0], type: :Point},
origin: {coordinates: [0], type: :Point}
)
puts(route_result)