Étapes planifiées + ETA
curl --request GET \
--url https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints \
--header 'X-Api-Key: <api-key>'import requests
url = "https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"label": "<string>",
"lat": 123,
"lng": 123,
"eta": "<string>",
"passed_at": "<string>"
}
]
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid API key."
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "Missing required scope: transports:write"
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "Transport not found."
}{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "An internal error occurred. Quote the reference when contacting support.",
"reference": "3b9f6c1e-8a2d-4f5b-9c7e-1d2a3b4c5e6f"
}Suivi GPS
Étapes planifiées + ETA
GET
/
transports
/
{id}
/
waypoints
Étapes planifiées + ETA
curl --request GET \
--url https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints \
--header 'X-Api-Key: <api-key>'import requests
url = "https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.myexpressdriver.com/v1/transports/{id}/waypoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"label": "<string>",
"lat": 123,
"lng": 123,
"eta": "<string>",
"passed_at": "<string>"
}
]
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid API key."
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "Missing required scope: transports:write"
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "Transport not found."
}{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "An internal error occurred. Quote the reference when contacting support.",
"reference": "3b9f6c1e-8a2d-4f5b-9c7e-1d2a3b4c5e6f"
}Autorisations
Clé API liée à un groupe (med_live_… en production, med_test_… en test).
Fournie en clair une seule fois à la création depuis le profil client.
Paramètres de chemin
Identifiant de la mission (offer_id).
Paramètres de requête
Taille de page (défaut 100, max 500).
Plage requise:
1 <= x <= 500Réponse
Liste d'étapes planifiées.
Show child attributes
Show child attributes
