API mobiliteit.lu ATP

Updated on March 3, 2023 — Creative Commons Attribution 4.0

Administration des transports publics

Administration compétente en matière de transports publics en ce qui concerne la gestion, l'organisation et le contrôle des services de transports publics réguliers et spécialisés. Plus particulièrement, l'administration est en charge de la gestion technique et financière des réseaux de transports…

3 datasets

Informations

License
Creative Commons Attribution 4.0
ID
6048b5ee58974d5771b858e0

Temporality

Frequency
Real time
Creation date
March 10, 2021
Latest resource update
March 10, 2022

Embed

Permalink

Description

L'Administration des transports publics vous offre l’accès à son OpenAPI des départs en temps réel.

Définition du schéma de l'API (XSD)

Veuillez contacter opendata-api@atp.etat.lu pour obtenir votre clé personnelle.

I) Arrêts des transports publics (location.nearbystops)

A) Vous devez indiquer les coordonnées géographiques x, y (en système WGS84):

originCoordLat=
originCoordLong=

B) Selon vos besoins vous pouvez préciser:

maxNo= un nombre max. d'arrêts retournés
r= un rayon autour des coordonnées (en mètres)

Exemple requête

https://cdt.hafas.de/opendata/apiserver/location.nearbystops?accessId=<API-KEY>&originCoordLong=6.09528&originCoordLat=49.77723&maxNo=5000&r=100000&format=json

(Remarque: Si vous voulez recevoir tous les arrêts existants utilisez les valeurs dans l'exemple)

II) Départs en temps réel (departureBoard)

Utilisez le résultat au-dessus. Cette liste vous indique l'identifiant de chaque arrêt. Vous avez besoin de cet identfiant pour générer les départs en temps-réel de l'arrêt souhaité.

id=

Exemple requête

https://cdt.hafas.de/opendata/apiserver/departureBoard?accessId=<API-KEY>&lang=fr&id=200426002&format=json

Files 2

API

Community resources 0

You have built a more comprehensive database than those presented here? This is the time to share it!

No resources match your search.

Reuses 4

Explore the reuses of this dataset.

Did you use this data ? Reference your work and increase your visibility.

Discussions 12

Discussion between the organization and the community about this dataset.

  • Différenciation arret de bus

    aurelien Poincelot
    September 25, 2024

    Bonjour, Si je prends l’exemple de Kesseler ( arrêt de bus à Strassen) Je vois que j’ai l’arrêt de bus qui est dans une direction et aussi dans l’autre direction ( d’un côté où l’autre de la route) Je pense qu’avec le field : direction 1 ou 2 j’allais pouvoir différencier l’arrêt de bus Kesseler direction centre ville ou dans l’autre sens. Mais ça n’est pas le cas. Je voulais savoir comment différencier le même arrêt de bus mais avoir les horaires pour les bus dans une seule direction Merci à vous

  • Bus/Train response between stops without direct connection

    Aaron Conrardy
    January 19, 2024

    I noticed that if two bus stops are given that do not have a direct connection between them, that the API does not provide any information. Is this intended or am I missing some parameters that I need to set? Best, Aaron.

  • arrivalBoard?

    Jerry Kreins
    January 2, 2024

    Moien and Happy New Year :-) Is there a way to get the real arrival time of buses and trains at a terminal station? Or do apps like mobiliteit.lu just add the scheduled amount of time to the real time data of the penultimate stop?

  • How to get AccessId

    Denis Wetzler
    June 10, 2023

    Hello! How and where may I receive AccessId? I've generated api_key on portal in my profile, but access denied.

    Administration des transports publics Customer Support
    June 12, 2023

    Please contact opendata-api@atp.etat.lu to get your personal api-key.

  • Data Analyst from Citymapper

    Eya Trabelsi
    May 22, 2023

    Hello I want to ask about the current api url for departure board that seems to be giving errorCode="API_PARAM" errorText="id or extId missing (IllegalArgumentException)" when requesting with this URL https://cdt.hafas.de/opendata/apiserver/departureBoard?accessId=5287a4f9-5003-4c6c-9282-ff67e7eed013 is something I need to be aware of ? Thank you in advance !

    Eya Trabelsi
    May 22, 2023

    Tried both with this URL as well and it was giving same error https://cdt.hafas.de/opendata/apiserver/departureBoard?accessId=5287a4f9-5003-4c6c-9282-ff67e7eed013&lang=en&format=json&rtMode=FULL

    Administration des transports publics Customer Support
    May 23, 2023

    You are missing the id parameter, which tells the API for which stop you are requesting the departures. Based on your example : https://cdt.hafas.de/opendata/apiserver/departureBoard?accessId=5287a4f9-5003-4c6c-9282-ff67e7eed013&id=200426002