Git Product home page Git Product logo

Comments (4)

dmklinger avatar dmklinger commented on May 20, 2024 1

It would look something like this:

{
    "company_name": "ScooterCompany",
    "device_type": "scooter",
    "trip_id": 107384,
    "trip_duration": 124.8681321144104,
    "trip_distance": 321.869243535,
    "route": {
        "type": "FeatureCollection",
        "features": [
            {
                "type": "Feature",
                "properties": {
                    "timestamp": 1529968782.421409
                },
                "geometry": {
                    "type": "Point",
                    "coordinates": [
                        -118.46710503101347,
                        33.9909333514159
                    ]
                }
            },
            {
                "type": "Feature",
                "properties": {
                    "timestamp": 1531007628.3774529
                },
                "geometry": {
                    "type": "Point",
                    "coordinates": [
                        -118.464851975441,
                        33.990366257735
                    ]
                }
            },
            {
                "type": "Feature",
                "properties": {
                    "timestamp": 1532046474.333497
                },
                "geometry": {
                    "type": "Point",
                    "coordinates": [
                        -118.46594363451004,
                        33.99065981258349
                    ]
                }
            },
            {
                "type": "Feature",
                "properties": {
                    "timestamp": 1529968907.289541
                },
                "geometry": {
                    "type": "Point",
                    "coordinates": [
                        -118.46710503101347,
                        33.9909333514159
                    ]
                    
                }
            }
        ]
    },
    "accuracy": 6,
    "device_id": 8745531,
    "parking_verification": "urlhere",
    "standard_cost": 0.05,
    "actual_cost": 1.15
}

from mobility-data-specification.

thekaveman avatar thekaveman commented on May 20, 2024 1

Yes, I agree... my comment about GPX wasn't so much that it should literally be the format here (as you rightly point out, it is an XML format not JSON). But more along the lines of what you're already proposing: a series of timestamps with associated GPS location.

Agree on all your points, and this definitely seems like a more useful representation that the individual start_point, end_point, etc.

from mobility-data-specification.

thekaveman avatar thekaveman commented on May 20, 2024

@kevinsmgov and I were discussing along similar lines (pun intended!)

He brought up the GPX data format, which might be applicable here.

from mobility-data-specification.

dmklinger avatar dmklinger commented on May 20, 2024

Can GPX be done in JSON? (Probably not) I like this way also b/c then Route is valid GeoJSON and can be exported to MapBox (or whatever we want) relatively easily without having to pull a bunch of fields

I also think it is relatively flexible in allowing for a variety of input methods: it doesn't matter what rate they poll the device (the polling can be irregular) or how often. It allows us to see exactly whether interpolation makes sense rather than requiring interpolation from the onset.

from mobility-data-specification.

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.