Giter Club home page Giter Club logo

Comments (3)

zeon256 avatar zeon256 commented on May 24, 2024

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.

zeon256 avatar zeon256 commented on May 24, 2024

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.

zeon256 avatar zeon256 commented on May 24, 2024

There will be breaking changes to NextBus in ArrivalBusService. It will become Option<NextBus>.

from lta-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.