cuappdev / cuappdev/ithaca-transit-tcat-microservice

Update /vehicles to parse more information

Open
#54 0 comments 0 reactions 1 assignee Claimed by @raahimenon View on GitHub
Dominant language
Python
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

We match live tracking data to data at vehicles:
https://realtimetcatbus.availtec.com/InfoPoint/GTFS-Realtime.ashx?&Type=VehiclePosition&serverid=0&debug=True

If we include debug=True, this is a JSON view-- however, if you check vehicles.py, we parse it in protobuf.

The problem is, I only recently started parsing this, and we're actually missing some info (not crucial though). I've only included the bare min.

The task is to update the entity_dict in vehicles.py:
entity_dict[vehicle_id] = {
"vehicleID": vehicle_id, # new!
"bearing": bearing,
"congestionLevel": congestion_level,
"latitude": latitude,
"longitude": longitude,
"routeID": route_id,
"speed": speed,
"timestamp": timestamp,
"tripID": trip_id,
}

to add more fields that can match the fields we already have but that we're just giving default values for in the PR below.

Highly recommend that you look at https://github.com/cuappdev/ithaca-transit-backend/pull/305 to get more ideas on what other information we can be parsing to provide the empty data that we are just giving default values for.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.