[Shared bikes] find stations around GPS coordinates

Publié le 6 janvier 2017

Voir la réutilisation

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
  • bike
  • mobilite
  • mobility
  • share
  • sharing
  • tfl

Informations

Type
API
Thématique
Transport
ID
586fc635cc765e1e6fc6e6ab

Publication

Intégrer sur votre site

URL stable

Description

Find shared bike points based on gps coordinated and a radius.

Documentation: https://docs.api.tfl.lu/v1/en/RESTAPIs/BikePoint/around.html

Access the API: https://api.tfl.lu/v1/BikePoint/around/{lon}/{lat}/{radius}

Here's an example:

{
    "type": "FeatureCollection",
    "features": [{
        "type": "Feature",
        "geometry": {
            "type": "Point",
            "coordinates": [6.132119, 49.5986]
        },
        "properties": {
            "id": "veloh:27",
            "open": true,
            "name": "MERCIER",
            "city": null,
            "address": "MERCIER - RUE DU COMMERCE / PARKING",
            "photo": null,
            "docks": 15,
            "available_bikes": 8,
            "available_ebikes": 0,
            "available_docks": 7,
            "last_update": 1485791158000,
            "dock_status": [{
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "free",
                "bikeType": null
            }, {
                "status": "free",
                "bikeType": null
            }, {
                "status": "free",
                "bikeType": null
            }, {
                "status": "free",
                "bikeType": null
            }, {
                "status": "free",
                "bikeType": null
            }, {
                "status": "free",
                "bikeType": null
            }, {
                "status": "free",
                "bikeType": null
            }],
            "distance": 255.41
        }
    }, {
        "type": "Feature",
        "geometry": {
            "type": "Point",
            "coordinates": [6.13736, 49.60164]
        },
        "properties": {
            "id": "veloh:37",
            "open": true,
            "name": "GAULOIS",
            "city": null,
            "address": "GAULOIS - Rue des gaulois 11",
            "photo": null,
            "docks": 15,
            "available_bikes": 11,
            "available_ebikes": 0,
            "available_docks": 4,
            "last_update": 1485791214000,
            "dock_status": [{
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "occupied",
                "bikeType": "manual"
            }, {
                "status": "free",
                "bikeType": null
            }, {
                "status": "free",
                "bikeType": null
            }, {
                "status": "free",
                "bikeType": null
            }, {
                "status": "free",
                "bikeType": null
            }],
            "distance": 288.89
        }
    }, {
        ...
    }]
}

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.