Planner location search, used to get start and destination location.
1 credit
Deducted from your plan's monthly call credits · Compare plans
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| query | string | Required | - | Query |
| limit | number | Optional | 12 | Number of results |
| location | string | Optional | - | You can boost results based on the location, this parameter only works for addresses. |
| includeLines | boolean | Optional | - | If you like to include linformation about what lines are passing at a stopplace you should enable this parameter. |
| resultTypes | array | Optional | address,stopPlace | What kind of results do you would like to have. |
| Property | Type | Description | |
|---|---|---|---|
items | array | List of places or stops found in the location search. | |
└─city | string | City where the location is situated. | |
└─name | string | Name of the location or stop. | |
└─type | string | General type of the location item, e.g. railStation, place, man_made, building, highway. | |
└─stopid | string | Unique identifier for transit stops (only for rail stations). | |
└─street | string | Street name associated with the location, if applicable. | |
└─country | string | Country where the location is situated. | |
└─location | object | Geographical coordinates of the location. | |
└─latitude | number | Latitude in decimal degrees, valid range -90 to 90. | min: -90
max: 90 |
└─longitude | number | Longitude in decimal degrees, valid range -180 to 180. | min: -180
max: 180 |
└─detailedType | string | More detailed classification of the location, such as 'city', 'bridge', 'train_station', 'unclassified'. |
curl "https://api.infoplaza.com/v1/transit/planner/search
?query=de meerpaal
&api_key=$INFOPLAZA_API_KEY"{
"items": [
{
"city": "Utrecht",
"name": "Utrecht Centraal",
"type": "railStation",
"stopid": "NL:S:ut",
"location": {
"latitude": 52.08972840981457,
"longitude": 5.109853499036995
}
},
{
"city": "Utrecht",
"name": "Utrecht Vaartsche Rijn",
"type": "railStation",
"stopid": "NL:S:utvr",
"location": {
"latitude": 52.07827150300195,
"longitude": 5.122849045356171
}
},
{
"city": "Utrecht",
"name": "Utrecht Maliebaan",
"type": "railStation",
"stopid": "NL:S:utm",
"location": {
"latitude": 52.087809023879274,
"longitude": 5.131532482637493
}
},
{
"city": "Utrecht",
"name": "Utrecht Terwijde",
"type": "railStation",
"stopid": "NL:S:utt",
"location": {
"latitude": 52.10019656190806,
"longitude": 5.0438497413938155
}
},
{
"city": "Utrecht",
"name": "Utrecht Zuilen",
"type": "railStation",
"stopid": "NL:S:utzl",
"location": {
"latitude": 52.10316967248629,
"longitude": 5.089423801125133
}
},
{
"city": "Utrecht",
"name": "Utrecht Leidsche Rijn",
"type": "railStation",
"stopid": "NL:S:utlr",
"location": {
"latitude": 52.098953875629356,
"longitude": 5.065327505925409
}
},
{
"city": "Utrecht",
"name": "Utrecht Lunetten",
"type": "railStation",
"stopid": "NL:S:utln",
"location": {
"latitude": 52.06741104838206,
"longitude": 5.142339025790679
}
},
{
"city": "Utrecht",
"name": "Utrecht Overvecht",
"type": "railStation",
"stopid": "NL:S:uto",
"location": {
"latitude": 52.10998701595266,
"longitude": 5.125376764947157
}
},
{
"name": "Utrecht",
"type": "place",
"country": "Nederland",
"location": {
"latitude": 52.0907006,
"longitude": 5.1215634
},
"detailedType": "city"
},
{
"city": "Amsterdam",
"name": "Utrechtsebrug, Amsterdam",
"type": "man_made",
"street": "Nieuwe Utrechtseweg",
"country": "Nederland",
"location": {
"latitude": 52.3387738,
"longitude": 4.9094218
},
"detailedType": "bridge"
},
{
"city": "Utrecht",
"name": "Utrecht Centraal",
"type": "building",
"street": "Stationshal",
"country": "Nederland",
"location": {
"latitude": 52.0893825,
"longitude": 5.1096021
},
"detailedType": "train_station"
},
{
"city": "Amsterdam",
"name": "Utrechtsestraat, Amsterdam",
"type": "highway",
"country": "Nederland",
"location": {
"latitude": 52.365145,
"longitude": 4.8978513
},
"detailedType": "unclassified"
}
]
}