Comments (4)
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.
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.
@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.
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)
- MDS 2.0 - Stops should have same response structure as vehicles or vice versa HOT 4
- MDS 2.0 - round-trip car sharing and reservation/reserved HOT 4
- Correction of description vehicle events (car sharing) HOT 3
- Car_type as an vehicle attribute HOT 1
- Minor additions to vehicle attributes // Car sharing HOT 3
- Flag geographies that should be returned in the Reports endpoint HOT 2
- Reports endpoint - START_DATE clarification HOT 4
- guidance on how to use telemetry data for compliance HOT 2
- What vehicles are included in the MDS 2.0 /vehicles endpoint? HOT 4
- Reports endpoint - description of START_DATE HOT 4
- Add mode in trips and vehicles objects HOT 6
- Data structure with sub-objects for mode-specific attributes complexifies the data ingestion HOT 1
- Adding a field in trip objects to cover cancelled trips easier HOT 2
- Add Provider ID: Nextbike HOT 2
- Error and bulk responses HOT 3
- Add the publication_time field in the telemetry object
- Supporting Advanced Air Mobility (AAM) HOT 1
- Add Provider ID: Starship Technologies HOT 3
- Add service_start_time and service_end_time to VEHICLES endpoint HOT 2
- Simplify /vehicles/status HOT 1
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 mobility-data-specification.