opentraffic / reporter

OTv2: distributed service that matches raw GPS probe data to OSMLR segments and sends anonymized speeds to Datastore
GNU Lesser General Public License v3.0
13 stars 16 forks source link

POST/GET Request Parser #1

Closed kevinkreiser closed 7 years ago

kevinkreiser commented 7 years ago

We will need something to parse the POST/GET requests. For starters, we can assume its csv because that is fast and easy. In the long run, we may want to make this functionality modular with a well-defined interface so that other on-premise people can implement their own in case they have some exotic format.

kdiluca commented 7 years ago

Prototype is half done. I still need to add logic for POST requests. This is done within Valhalla/tools

kdiluca commented 7 years ago

status: I'm able to read a gpx file using our matcher_service.py and parse the data into the following:

“trace”: [ {“lat”:39.7777,”lon”:-76.5555,”time”:1111}, {“lat”:39.778,”lon”:-76.556,”time”:1112}, {“lat”:39.778,”lon”:-76.556,”time”:1113}, {“lat”:39.778,”lon”:-76.556,”time”:1114}, {“lat”:39.778,”lon”:-76.556,”time”:1115}, {“lat”:39.778,”lon”:-76.556,”time”:1116}, {“lat”:39.778,”lng”:-76.556,”time”:1117}]

TODOs today: Split the trace into 1 minute chunks to pass to the Valhalla matching function.