Skip to content

Routes, lines, stations, etc. API

mebibou edited this page Jun 20, 2013 · 15 revisions

to see the list of available parameters and actions, check http://files.transilien.com/hackdays/Manuel_Integration_API_Microservice.pdf

##Possible actions

Proximity

Getting the stops close to a point in space

MSTransilienAPI api = new MSTransilienAPI();

Map<ActionParam, Object> params = new HashMap<ActionParam, Object>();
params.put(ActionProximityList.Params.Type, "StopPoint");
// proximity PARIS GARE DE LYON
params.put(ActionProximityList.Params.X, "602697,00");
params.put(ActionProximityList.Params.Y, "2427309,00");

ActionProximityList action = api.list(params, ActionProximityList.class);
ProximityList list = action.getList();

Companies

Getting the list of companies

MSTransilienAPI api = new MSTransilienAPI();
CompanyList list = api.list(null, ActionCompanyList.class).getList();

Routes

Getting the list of routes

MSTransilienAPI api = new MSTransilienAPI();
ActionRouteList action = api.list(null, ActionRouteList.class);
RouteList list = action.getList();
Clone this wiki locally