Comments (3)
Found problem
{
"odata.metadata": "http://datamall2.mytransport.sg/ltaodataservice/$metadata#BusArrivalv2/@Element",
"BusStopCode": "83139",
"Services": [
{
"ServiceNo": "15",
"Operator": "GAS",
"NextBus": {
"OriginCode": "77009",
"DestinationCode": "77009",
"EstimatedArrival": "2019-08-24T23:12:44+08:00",
"Latitude": "1.3155073333333334",
"Longitude": "103.90588666666666",
"VisitNumber": "1",
"Load": "SEA",
"Feature": "WAB",
"Type": "SD"
},
"NextBus2": {
"OriginCode": "77009",
"DestinationCode": "77009",
"EstimatedArrival": "2019-08-24T23:32:28+08:00",
"Latitude": "1.3451273333333333",
"Longitude": "103.9366695",
"VisitNumber": "1",
"Load": "SEA",
"Feature": "WAB",
"Type": "SD"
},
"NextBus3": {
"OriginCode": "77009",
"DestinationCode": "77009",
"EstimatedArrival": "2019-08-24T23:45:49+08:00",
"Latitude": "1.3593521666666666",
"Longitude": "103.94218583333333",
"VisitNumber": "1",
"Load": "SEA",
"Feature": "WAB",
"Type": "SD"
}
},
{
"ServiceNo": "150",
"Operator": "SBST",
"NextBus": {
"OriginCode": "82009",
"DestinationCode": "82009",
"EstimatedArrival": "2019-08-24T23:25:13+08:00",
"Latitude": "0",
"Longitude": "0",
"VisitNumber": "1",
"Load": "SEA",
"Feature": "WAB",
"Type": "SD"
},
"NextBus2": {
"OriginCode": "82009",
"DestinationCode": "82009",
"EstimatedArrival": "2019-08-24T23:40:13+08:00",
"Latitude": "0",
"Longitude": "0",
"VisitNumber": "1",
"Load": "SEA",
"Feature": "WAB",
"Type": "SD"
},
"NextBus3": {
"OriginCode": "",
"DestinationCode": "",
"EstimatedArrival": "",
"Latitude": "",
"Longitude": "",
"VisitNumber": "",
"Load": "",
"Feature": "",
"Type": ""
}
},
{
"ServiceNo": "155",
"Operator": "SBST",
"NextBus": {
"OriginCode": "52009",
"DestinationCode": "84009",
"EstimatedArrival": "2019-08-24T23:11:35+08:00",
"Latitude": "1.3155108333333334",
"Longitude": "103.9059175",
"VisitNumber": "1",
"Load": "SEA",
"Feature": "WAB",
"Type": "SD"
},
"NextBus2": {
"OriginCode": "52009",
"DestinationCode": "84009",
"EstimatedArrival": "2019-08-24T23:28:17+08:00",
"Latitude": "1.326041",
"Longitude": "103.883962",
"VisitNumber": "1",
"Load": "SEA",
"Feature": "WAB",
"Type": "SD"
},
"NextBus3": {
"OriginCode": "52009",
"DestinationCode": "84009",
"EstimatedArrival": "2019-08-24T23:39:42+08:00",
"Latitude": "1.3378748333333332",
"Longitude": "103.87604566666667",
"VisitNumber": "1",
"Load": "SEA",
"Feature": "WAB",
"Type": "SD"
}
}
]
}
Sometimes NextBus
returns all empty strings
from lta-rs.
Because of this, there should be even more extensive testing for the deserialisation but I am currently very busy with NS at the moment and won't have much time to fix this. I will slowly fix this but I cannot promise any day I will complete the full testing
from lta-rs.
There will be breaking changes to NextBus
in ArrivalBusService
. It will become Option<NextBus>
.
from lta-rs.
Related Issues (20)
- Wrong URL
- Enum deserialization may panic HOT 1
- LTA 1 April 2020 Update HOT 1
- ERP rates HOT 2
- Possibility of merging lta_utils_commons and lta_models HOT 1
- BusService struct causes panic due to broken data
- Compiling for `aarch64-unknown-linux-gnu` fails if target does not have OpenSSL installed
- r#async::tests::get_cp_avail fails on latest commit HOT 2
- New Platform Crowd Density API HOT 1
- Ergonomic upgrades for `skip` parameters
- Typo for `FacilityReqeusts` trait
- Unergonomic usage of `Bus::get_arrival`
- Separate HTTP client by backends
- Wrong error returned when failed to parse body
- Allow for custom URLs
- New traffic flow API and revised traffic speed bands
- Fix badge
- BusServices failed to parse due to interger overflow
- Relax Sync and Send requirements for async
- Allow CI to skip on `docs:`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lta-rs.