Да, ну вот к примеру:
curl 'https://api.mapbox.com/directions/v5/mapbox/driving-traffic/-79.431268%2C43.664546%3B-79.429329%2C43.644102.json?geometries=polyline&steps=true&overview=full&language=en&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg' -H 'Sec-Fetch-Mode: cors' -H 'Referer: https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/' -H 'Origin: https://docs.mapbox.com' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36' --compressed
на выходе:
{
"routes": [
{
"geometry": "mfoiGl|xcNhA]XnBx@tF@Jl@pFt@xF\\xBXfBBLtOaF`A[PENEbD}@|Bk@~@UVIl@QtAc@TENE~CaA|DgALCPGxA_@PEdAYhA[p@WXItA_@XIv@UBAJC@?BAJCLEfCs@jBi@x@SpDcAx@ULEB?@ALE|@UpHuBPG\\KpBi@JCLE`D{@HEvA_@hA[HCtA_@xAa@LE",
"legs": [
{
"summary": "Shanly Street, Dufferin Street",
"weight": 570.1,
"duration": 429,
"steps": [
{
"intersections": [
{
"out": 0,
"entry": [
true
],
"bearings": [
163
],
"location": [
-79.431268,
43.664546
]
}
],
"driving_side": "right",
"geometry": "mfoiGl|xcNhA]",
"mode": "driving",
"maneuver": {
"bearing_after": 163,
"bearing_before": 0,
"location": [
-79.431268,
43.664546
],
"type": "depart",
"instruction": "Head south on Lane West Dovercourt North Shanly"
},
"weight": 32.9,
"duration": 20.9,
"name": "Lane West Dovercourt North Shanly",
"distance": 42.2
},
{
"intersections": [
{
"out": 1,
"in": 2,
"entry": [
true,
true,
false
],
"bearings": [
75,
255,
345
],
"location": [
-79.431118,
43.664182
]
},
В geometry подозреваю итоговый polyline в формате google polyline(этот формат очень здорово сжимает координаты полигонов и проч)