![]() You can find information about each field in API Reference. The response will return an object containing the information about the calculated route: route length in meters ( total_distance), travel time in seconds ( total_duration), a list of maneuvers ( maneuvers), and other fields. The first element of the array is the starting point. ![]() The points parameter is an array of route points ( x is the longitude of a point y is the latitude of a point). header 'Content-Type: application/json' \ Ĭoordinates for the route and other parameters must be sent as a JSON string in the request body.įor example, to build a truck route from point A to point B considering the current traffic condition, you can send a request similar to the following: curl -request POST \ Specify your API key as the key parameter in the query string. To calculate a route, send a POST request to the /truck/6.0.0/global endpoint. To obtain the key, fill out the form at /order. This URL should be accessible from all the pods within your Kubernetes cluster. access.url: URL of the API Keys service's endpoint. access.enabled: flag that controls whether keys checking for access limiting is enabled. The list of regions where it is possible to build routes for trucks is gradually being expanded with new cities. Use these settings if you want to restrict end-user access to the Tiles API service.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |