Seine-et-Marne Express

Déconnecté

Seine-et-Marne Express API

List Bus lines

URL
http://sme.seine-et-marne.fr/API/lines
Format
json
HTTP Method
GET
Responses
Return an Array of lines.

Sample

    [{
        "lineId":"1780",
        "name":"Ligne 01",
        "commercialName":"Melun <> Coulommiers <> Rebais"
    }, {
        "lineId":"3438",
        "name":"Ligne 16",
        "commercialName":"Lieusaint <> Serris"
    }, {
        "lineId":"218",
        "name":"Ligne 17",
        "commercialName":"La Ferté-Gaucher <> Coulommiers <> Chessy RER"
    }]
        

Get line infos

URL
http://sme.seine-et-marne.fr/API/lines/{lineId}
Format
json
HTTP Method
GET
Parameters
  • lineId (given in url): The id of the line
Responses
Return the line infos.

Sample

GET /API/lines/1780

{
    "lineId":"1780",
    "name":"Ligne 01",
    "commercialName" : "Melun <> Coulommiers <> Rebais",
    "routes": [{
      "routeId":"1781",
      "name":"Melun > Coulommiers > Rebais"
    }, {
      "routeId":"2623",
      "name":"Rebais > Coulommiers > Melun"
    }]
}
        

Get route infos

URL
http://sme.seine-et-marne.fr/API/routes/{routeId}
Format
json
HTTP Method
GET
Parameters
  • routeId (given in url): The id of the route
Responses
Return the route infos.

Sample

GET /API/routes/1781

{
    "routeId":"1781",
    "name":"Melun > Coulommiers > Rebais",
    "timetables": [{
      "timetableId":"2317",
      "name":"Samedi, sauf jours fériés"
    }]
}
        

Get a timetable

URL
http://sme.seine-et-marne.fr/API/timetables/{timetableId}
Format
json
HTTP Method
GET
Parameters
  • timetableId (given in url): The id of the timetable
Responses
Return the timetable.

Sample

GET /API/timetables/2317

{
  id: 2317,
  name: "Samedi, sauf jours fériés",
  draft: false,
  dateFrom: 1283378400000,
  routeId: 1781,
  journeys: [{
    id: 2318,
    timetableId: 2317,
    journeyPosition: 0,
    passages: [{
      id: 2319,
      stationId: 74,
      stationRouteId: 12834,
      time: {
        minutes: 0,
        hours: 6,
        totalTime: 360
      }
    },
    ...
    ]
  },
  ...
  ],
  stations: [{
    id: 74,
    stationRouteId: 12834,
    name: "Gare - Place de l'Ermitage",
    address: "Place de l'Ermitage",
    accessible: false,
    town: {
      id: 18,
      name: "Melun",
    },
    isConnection: false
  },
  ...
  ]
}
        

List stations

URL
http://sme.seine-et-marne.fr/API/stations
http://sme.seine-et-marne.fr/API/stations/from/{stationFromId}
Format
json
HTTP Method
GET
Parameters
  • stationFromId (using the second url pattern): The id of a station.
Responses
Using the first URL, the API return all stations. Using the second, it only return stations connectable to the stationFrom as a destination station.

Sample

        [{
          "id": "8",
          "name": "Hôtel de ville",
          "town": "Bagneaux-sur-Loing"    
        }, {
          "id": "209",
          "name": "Centre RD 222",
          "town": "Boissy-le-Châtel"    
        }]
        

Get the closest station

URL
http://sme.seine-et-marne.fr/API/station/{lat}/{lng}
Format
json
HTTP Method
GET
Parameters
  • lat (in the url): The lattitude of the geoloc position.
  • lng (in the url): The longitude of the geoloc position.
Responses
Return the closest station of a geoloc position or an empty object if no station was found near this position.

Sample

GET /API/station/48.5273/2.655

        [{
        "id": "19",
        "name": "Gare - Rue de l'Industrie",
        "town": "Melun"    
        }]
        

List journeys

URL
http://sme.seine-et-marne.fr/API/journeys/{stationFromId}/{stationToId}
Format
json
HTTP Method
GET
Parameters
  • stationFromId (in the url): The id of the source station
  • stationToId (in the url): The id of the destination station
  • date (default: now): La date désirée au format dd/mm/yyyy
  • hours (default: now): L'heure désirée
  • minutes (default: now): Les minutes désirée
  • windowMinutes (default: 60): La fenêtre temporelle de recherche en minutes
Responses
Return an object containing the two selected stations and an array of journeys. A journey contains lines infos and a list of passage point (station / time).

Sample

GET /API/journeys/197/195?date=16/12/2010&hours=16&minutes=00&windowMinutes=20

{
  "fromStation": {
    "id": "197",
    "name": "Eglise",
    "townName": "Chaumes-en-Brie"
  },
  "toStation": {
    "id": "195",
    "name": "Gare SNCF",
    "townName": "Verneuil-l'Etang"
  },
  "journeys": [
    {
        "id":"2968",
        "lineName":"Ligne 01",
        "routeName":"Rebais > Coulommiers > Melun",
        "passages": [
                      {
              "id": "2969",
              "stationId": "146",
              "time": { "hours": 15, "minutes": 50 }
            },                      {
              "id": "2970",
              "stationId": "205",
              "time": { "hours": 15, "minutes": 57 }
            },                      {
              "id": "2971",
              "stationId": "203",
              "time": { "hours": 16, "minutes": 3 }
            },                      {
              "id": "2972",
              "stationId": "201",
              "time": { "hours": 16, "minutes": 4 }
            },                      {
              "id": "2973",
              "stationId": "199",
              "time": { "hours": 16, "minutes": 13 }
            },                      {
              "id": "2974",
              "stationId": "197",
              "time": { "hours": 16, "minutes": 19 }
            },                      {
              "id": "2975",
              "stationId": "195",
              "time": { "hours": 16, "minutes": 23 }
            },                      {
              "id": "2976",
              "stationId": "194",
              "time": { "hours": 16, "minutes": 24 }
            },                      {
              "id": "2977",
              "stationId": "192",
              "time": { "hours": 16, "minutes": 28 }
            },                      {
              "id": "2978",
              "stationId": "191",
              "time": { "hours": 16, "minutes": 30 }
            },                      {
              "id": "2979",
              "stationId": "85",
              "time": { "hours": 16, "minutes": 45 }
            },                      {
              "id": "2980",
              "stationId": "73",
              "time": { "hours": 16, "minutes": 48 }
            },                      {
              "id": "2981",
              "stationId": "19",
              "time": { "hours": 17, "minutes": 0 }
            }                  ]
    }  ]
}