Logo
developer platform
Docs
API
Pricing
Showcase
API Overview
API Reference
Weather Core
ForecastClimateRadarWarnings
Weather Models
Models InfoForecast Timeseries
Marine
Storms
Geocoding
Geocoding NearbyGeocoding Search
Mobility
Traffic OverviewTraffic GeoTransit Nearby StopsTransit DeparturesTransit Planner
_Other
Test Error[archive] Weather Climate[archive] Weather Climate (old)[archive] Weather Forecast

Transit Planner

SOCKET
https://api.infoplaza.dev/v1/transit/planner

Description

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.

Parameters

ParameterTypeRequiredDefaultDescription
latnumberRequired-Latitude of the center point
lonnumberRequired-Longitude of the center point

Response

PropertyTypeDescription
stopplaces
arrayArray of stopplace objects representing transit stops near the location.
minItems: 1
└─id
stringUnique identifier for the stopplace, including country code and numeric ID (e.g., NL:S:51280960).
└─name
stringName of the stopplace.
└─town
stringName of the town or city where the stopplace is located.

Example Request

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"
}'

Example Response

{
  "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
objectGeographical coordinates of the stopplace.
└─latitude
numberLatitude in decimal degrees.
min: -90 max: 90
└─longitude
numberLongitude in decimal degrees.
min: -180 max: 180
└─links
objectLinks to related resources for this stopplace.
└─departures
stringURL to retrieve departure information for this stopplace.
format: uri