[Shared bikes] find stations around GPS coordinates

Published on January 6, 2017

See the reuse

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 reuses

  • bike
  • mobilite
  • mobility
  • share
  • sharing
  • tfl

Informations

Type
API
Topic
Others
ID
586fc635cc765e1e6fc6e6ab

Publication

Embed

Permalink

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
        }
    }, {
        ...
    }]
}

Used datasets 1

Discussion between the organization and the community about this reuse.

More reuses

Discover more reuses.