Show current Nextbike count
kiliankoe opened this issue Β· comments
Kilian Koeltzsch commented
Just a bike icon with a number next to it would probably suffice. Would make a nice addition imo.
π² 5
Getting the data is trivial:
curl "https://api.nextbike.net/maps/nextbike-live.json?city=2"
// ...
{
"uid": 4405708,
"lat": 51.025619416653,
"lng": 13.723919391632,
"bike": false,
"name": "Andreas-Pfitzmann-Bau",
"address": null,
"spot": true,
"number": 4461,
π "bikes": 0, π
"bike_racks": 0,
"free_racks": 0,
"maintenance": false,
"terminal_type": "traffic_sign",
"bike_list": [],
"bike_numbers": [],
"bike_types": [],
"place_type": "0",
"rack_locks": false
},
// ...