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"
            }]
        }
    }]
}

Discussions

+

Start a new discussion

Discussion between the reusers and the community about this reuse.