GET StopPoint/box/{swLon}/{swLat}/{neLon}/{neLat}

Returns all train and bus stops within a minimum bounding box. The minimum bounding box must be defined by 2 GPS coordinates South-West and North-East.

Parameters

Parameter Example value Description
swLon 6.133052 GPS longitude float of south west minimum bounding box location
swLat 49.60067 GPS latitude float of south west minimum bounding box location
neLon 6.133646 GPS longitude float of north east minimum bounding box location
neLat 49.600814 GPS latitude float of north east minimum bounding box location

Resource URL

https://api.tfl.lu/v1/StopPoint/box/{swLon}/{swLat}/{neLon}/{neLat}

Format

The response will be formatted as a GeoJSON Feature Collection.

Object properties

Key Type Possible values Description
id integer {id} id of bus and/or train stop
name string {name} name of bus and/or train stop (used for search)

Sample request & response

GET https://api.tfl.lu/v1/StopPoint/box/6.133052/49.60067/6.133646/49.600814

{
    "type": "FeatureCollection",
    "features": [{
        "type": "Feature",
        "geometry": {
            "type": "Point",
            "coordinates": [6.133205, 49.600814]
        },
        "properties": {
            "id": 200405002,
            "name": "Luxembourg, Gare Centrale Quai 102"
        }
    }, {
        "type": "Feature",
        "geometry": {
            "type": "Point",
            "coordinates": [6.133646, 49.60067]
        },
        "properties": {
            "id": 200405035,
            "name": "Luxembourg, Gare Centrale"
        }
    }]
}

License

Please refer to StopPoint for information about the train and bus stop data licensing.

Credits

Made by Daniel Duton & Thierry Degeling from ION Network Solutions.

Sponsored by Digital Lëtzebuerg.

results matching ""

    No results matching ""