public transport destination doesn't work
Posted: Friday 28 August 2020 16:50
I want to display the train deventer colmschate -> Deventer
if i remove the line destination i get al te trains in both directions.
if i use destination it is blanc, what am i doing wrong?
http://api.9292.nl/0.1/locations?lang=nl-NL&q=deventer
gives me :
{
"locations": [
{
"id": "station-deventer",
"type": "station",
"stationId": "dv",
"stationType": "Station",
"name": "Deventer",
"place": {
"name": "Deventer",
"regionCode": "OV",
"regionName": "Overijssel",
"showRegion": false,
"countryCode": "NL",
"countryName": "Nederland",
"showCountry": false
},
"latLong": {
"lat": 52.257079,
"long": 6.160821
},
"urls": {
"nl-NL": "/station-deventer",
"en-GB": "/en/station-deventer"
}
},
if i remove the line destination i get al te trains in both directions.
if i use destination it is blanc, what am i doing wrong?
Code: Select all
var publictransport = {}
publictransport.ovinfotrain_deventer= {
station: 'station-deventer-colmschate',
destination: 'station-deventer',
title:'Colmschate -> Deventer',
show_via: 'true',
show_lastupdate:true,
provider: '9292-train',
icon: 'fas fa-train',
results: 5
};
gives me :
{
"locations": [
{
"id": "station-deventer",
"type": "station",
"stationId": "dv",
"stationType": "Station",
"name": "Deventer",
"place": {
"name": "Deventer",
"regionCode": "OV",
"regionName": "Overijssel",
"showRegion": false,
"countryCode": "NL",
"countryName": "Nederland",
"showCountry": false
},
"latLong": {
"lat": 52.257079,
"long": 6.160821
},
"urls": {
"nl-NL": "/station-deventer",
"en-GB": "/en/station-deventer"
}
},