API KR

Vous êtes ici :   API Keolis Rennes  /    Les données  /    API Version 2  /  getmetrostations

getmetrostations

getmetrostations : Get network metro stations

Retrieves metrostations

Parameters
Name Type Required Default Description
network Enumeration No star The network identifier.
mode Enumeration No all The filter type.
Enumeration values
Parameter Value Has subparams Description
network star No The bus and subway network of Rennes.
mode all No No filter, all stations are returned.
station Yes Filter on the station.
proximity Yes Filter to the nearest stations.

mode : station

Parameters
Name Type Required Default Description
station String Yes The station's ID.

mode : proximity

Parameters
Name Type Required Default Description
type Enumeration Yes The kind of proximity look up.
Enumeration values
Parameter Value Has subparams Description
type station Yes From the specified station.
coords Yes From the specified coordinates.

type : station

Parameters
Name Type Required Default Description
station String Yes The station's ID.

type : coords

Parameters
Name Type Required Default Description
lat Number Yes The point latitude.
lng Number Yes The point longitude.
Retrieves the metro stations from a network.

La structure XML de la données de sortie

La structure XML de la données de sortie

<station>
      <id>ANF</id>
        <name>Anatole France</name>
        <latitude>48.11810</latitude>
        <longitude>-1.68746</longitude>
        <hasPlatformDirection1>true</hasPlatformDirection1>
        <hasPlatformDirection2>true</hasPlatformDirection2>
        <rankingPlatformDirection1>12</rankingPlatformDirection1>
        <rankingPlatformDirection2>18</rankingPlatformDirection2>
        <floors>-1</floors>
    <lastUpdate>2010-06-01</lastUpdate>  
</station>

Spécificités

Spécificités

Il est possible d’effectuer une recherche par station pour obtenir les informations relatives à une station donnée.

La recherche par proximité renvoie les 3 stations les plus proches classées en fonctions de la distance. On peut préciser cette recherche par rapport à un point GPS ou une id de station.