Waypoint 1
Waypoint 2
Waypoint 3
Waiting for response ...
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