Open blubbfish opened 3 years ago
The problem is only with Location data. Other data (from 2017) can be queried.
Looks like the query has an issue. It only selects time
from the parent object:
https://toronto-bike-snapshot.sensorup.com/v1.0/Things(206047)/HistoricalLocations?&$expand=Locations($select=name,location)&$select=time&$top=1
{
"@iot.count": 1,
"value": [
{
"time": "2017-02-04T15:50:10.489Z"
}
]
}
Without selector: https://toronto-bike-snapshot.sensorup.com/v1.0/Things(206047)/HistoricalLocations?&$expand=Locations($select=name,location)&$top=1
{
"@iot.count": 1,
"value": [
{
"@iot.id": 206049,
"@iot.selfLink": "https://toronto-bike-snapshot.sensorup.com/v1.0/HistoricalLocations(206049)",
"time": "2017-02-04T15:50:10.489Z",
"Locations": [
{
"name": "7061:Bloor St / Brunswick Ave",
"location": {
"coordinates": [
-79.407224,
43.665876
],
"type": "Point"
}
}
],
"Thing@iot.navigationLink": "https://toronto-bike-snapshot.sensorup.com/v1.0/HistoricalLocations(206049)/Thing"
}
]
}
Selecting time
and Locations
:
https://toronto-bike-snapshot.sensorup.com/v1.0/Things(206047)/HistoricalLocations?&$expand=Locations($select=name,location)&$select=time,Locations&$top=1
{
"@iot.count": 1,
"value": [
{
"time": "2017-02-04T15:50:10.489Z",
"Locations": [
{
"name": "7061:Bloor St / Brunswick Ave",
"location": {
"coordinates": [
-79.407224,
43.665876
],
"type": "Point"
}
}
]
}
]
}
It seems that sensorthing-datasource has issues with https://toronto-bike-snapshot.sensorup.com/v1.0.