Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show current Nextbike count #29

Open
kiliankoe opened this issue Oct 19, 2017 · 0 comments
Open

Show current Nextbike count #29

kiliankoe opened this issue Oct 19, 2017 · 0 comments

Comments

@kiliankoe
Copy link
Member

kiliankoe commented Oct 19, 2017

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
},
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant