GET

Waypoint 1

On-road
On-road Off-road
Leaflet | ©2025, PTV Logistics, HERE


Waypoint 2

None
Manipulate-route Combined transport None
Leaflet | ©2025, PTV Logistics, HERE
Leaflet | ©2025, PTV Logistics, HERE


Waypoint 3

On-road
On-road Off-road
Leaflet | ©2025, PTV Logistics, HERE


Send Request
Response
Waiting for response ...
Leaflet | ©2025, PTV Logistics, HERE
Request Sample
var client = new RestClient("https://api.myptv.com/routing/v1/routes?waypoints=52.5168476,13.4033203&waypoints=55.6526065,12.4823570&results=POLYLINE&options[trafficMode]=AVERAGE");
var request = new RestRequest(Method.GET);
request.AddHeader("apiKey", "YOUR_API_KEY");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
fetch("https://api.myptv.com/routing/v1/routes?waypoints=52.5168476,13.4033203&waypoints=55.6526065,12.4823570&results=POLYLINE&options[trafficMode]=AVERAGE", {
        method: "GET",
        headers: [object Object],
    })
    .then(response => response.json())
    .then(result => console.log(result));
import requests
url = "https://api.myptv.com/routing/v1/routes?waypoints=52.5168476,13.4033203&waypoints=55.6526065,12.4823570&results=POLYLINE&options[trafficMode]=AVERAGE"
headers = {
    'apiKey': "YOUR_API_KEY"
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
OkHttpClient client = new OkHttpClient().newBuilder()
    .build();
Request request = new Request.Builder()
    .url("https://api.myptv.com/routing/v1/routes?waypoints=52.5168476,13.4033203&waypoints=55.6526065,12.4823570&results=POLYLINE&options[trafficMode]=AVERAGE")
    .method("GET", null)
    .addHeader("apiKey", "YOUR_API_KEY")
    .build();
Response response = client.newCall(request).execute();
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("apiKey", "YOUR_API_KEY")
$response = Invoke-RestMethod 'https://api.myptv.com/routing/v1/routes?waypoints=52.5168476,13.4033203&waypoints=55.6526065,12.4823570&results=POLYLINE&options[trafficMode]=AVERAGE' -Method 'GET' -Headers $headers
$response | ConvertTo-Json