The Travel Planner API allows clients to stream travel results between two coordinates in real time. It uses WebSocket for continuous communication and Protocol Buffers (Protobuf) for efficient data serialization.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| lat | number | Required | - | Latitude of the center point |
| lon | number | Required | - | Longitude of the center point |
| Property | Type | Description | |
|---|---|---|---|
stopplaces | array | Array of stopplace objects representing transit stops near the location. | minItems: 1 |
└─id | string | Unique identifier for the stopplace, including country code and numeric ID (e.g., NL:S:51280960). | |
└─name | string | Name of the stopplace. | |
└─town | string | Name of the town or city where the stopplace is located. |
curl -X SOCKET "https://api.infoplaza.dev/v1/transit/planner? \
lat=52.02 \
&lon=5.16 \
&api_key=$INFOPLAZA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"lat": "52.02",
"lon": "5.16"
}'{
"stopplaces": [
{
"id": "NL:S:51280960",
"name": "Weteringshoek",
"town": "Houten",
"coordinates": {
"latitude": 52.019034,
"longitude": 5.163319
},
"links": {
"departures": "https://developer.infoplaza.com/api/v1/transit/stops/departures?stopplace_id=NL:S:51280960"
}
},
{
"id": "NL:S:51280680",
"name": "Oude Dorp",
"town": "Houten",
"coordinates": {
"latitude": 52.024968,
"longitude": 5.159924
},
"links": {
"departures": "https://developer.infoplaza.com/api/v1/transit/stops/departures?stopplace_id=NL:S:51280680"
}
}
]
}└─coordinates | object | Geographical coordinates of the stopplace. |
└─latitude | number | Latitude in decimal degrees. | min: -90
max: 90 |
└─longitude | number | Longitude in decimal degrees. | min: -180
max: 180 |
└─links | object | Links to related resources for this stopplace. |
└─departures | string | URL to retrieve departure information for this stopplace. | format: uri |