[Shared bikes] find stations in a GPS coordinates bounding box
Publié le 6 janvier 2017
Transport for Luxembourg
Transport for Luxembourg is a project initiated by Thierry DEGELING and Daniel DUTON. As a proof of concept, they made a proxy API for Mobiliteit.lu at the Game of Code hackathon. After being awarded 3rd best team at the Hackathon, Digital Lëtzebuerg has given ION Network Solutions (employer of…
31 réutilisations
Informations
- Type
- API
- Thématique
- Autres
- ID
- 586fc244111e9b402a1399b2
Publication
Intégrer sur votre site
URL stable
Description
Get shared bike points as geojson based on a GPS bounding box.
Documentation: https://docs.api.tfl.lu/v1/en/RESTAPIs/BikePoint/box.html
Access the API: https://api.tfl.lu/v1/BikePoint/box/{swLon}/{swLat}/{neLon}/{neLat}
Here's an example:
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [6.101875, 49.516036]
},
"properties": {
"id": "velok:46",
"open": true,
"name": "Gare CFL Bettembourg",
"city": "Bettembourg",
"address": "Place de la Gare",
"photo": "https://webservice.velok.lu/images/photos/46.jpg",
"docks": 7,
"available_bikes": 0,
"available_ebikes": 1,
"available_docks": 6,
"last_update": null,
"dock_status": [{
"status": "free",
"bikeType": null
}, {
"status": "free",
"bikeType": null
}, {
"status": "free",
"bikeType": null
}, {
"status": "occupied",
"bikeType": "electric"
}, {
"status": "free",
"bikeType": null
}, {
"status": "free",
"bikeType": null
}, {
"status": "free",
"bikeType": null
}]
}
}, {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [6.108912, 49.517218]
},
"properties": {
"id": "velok:47",
"open": true,
"name": "Reebou-Schoul",
"city": "Bettembourg",
"address": "Rue Marie Therèse",
"photo": "https://webservice.velok.lu/images/photos/47.jpg",
"docks": 5,
"available_bikes": 0,
"available_ebikes": 4,
"available_docks": 1,
"last_update": null,
"dock_status": [{
"status": "occupied",
"bikeType": "electric"
}, {
"status": "free",
"bikeType": null
}, {
"status": "occupied",
"bikeType": "electric"
}, {
"status": "occupied",
"bikeType": "electric"
}, {
"status": "occupied",
"bikeType": "electric"
}]
}
}]
}
Jeux de données utilisés 1
Discussion entre l'organisation et la communauté à propos de cette réutilisation.
Plus de réutilisations
Découvrez davantage de réutilisations.