hackgvl / trolley-tracker-api-dot-net

API for tracking Greenville's trolleys with .NET
MIT License
4 stars 6 forks source link

Return IconColorRGB in /api/v1/Trolleys/Running #31

Closed ajhodges closed 7 years ago

ajhodges commented 7 years ago

It would simplify some of the front-end logic if we return the IconColorRGB in the 'Running' endpoint. That way I don't have to download the entire list of trolleys and loop through them to find the color of the running trolleys!

bikeoid commented 7 years ago

I've tried to minimize the size of communications with both the beacons and clients in the Running endpoint, including stripping off cookies. There's a good chance that we'll have to move to Azure in the future, where bandwidth will be part of the direct cost.

Since there are only a few trolleys, can the trolley information be downloaded once and cached?

ajhodges commented 7 years ago

Ah, I see. If that's the case, then I certainly can cache trolley data! No problem.