mjarrett / bikedata

Tools for pulling GBFS data
2 stars 0 forks source link

Track Free Bike trips #1

Closed mjarrett closed 4 years ago

mjarrett commented 4 years ago

Need to find a way to track trips by free bikes (not station-based bikes).

The GBFS spec says the free_bike_status.json should only describe bikes that are not in use. So if a bike disappears from the free_bike list, it is on a trip (or out of service).

mjarrett commented 4 years ago

df = pd.pivot_table(bs.free_bikes, values='coords',index='time',columns='bike_id', aggfunc='first')