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

Discussions

+

Start a new discussion

Discussion between the reusers and the community about this reuse.