Oskari API Documentation

Select event

admindown-arrow
cataloguedown-arrow
frameworkdown-arrow
mappingdown-arrow
statisticsdown-arrow
uidown-arrow

RouteResultEvent RPC

Notifies that route has been got successfully from the service. Includes information about the route.

Description

Used to notify the result for GetRouteRequest.

Parameters

(* means the parameter is required)

Name Type Description Default value
success BooleanTrue if we got a route. With false value the other fields might be empty.
requestParameters JSONParameters that were used to get route from the routing service (parsed parameters).
plan JSONRoute instructions.
rawParams JSONParameters that were used when requesting the route (passed in GetRouteRequest).

RPC

Event occurs after a route search has been completed.


{
  "success": true,
  "requestParameters": {
    "time": "03:03PM",
    "arriveBy": "false",
    "wheelchair": "false",
    "maxWalkDistance": "1000",
    "fromPlace": {
      "lon": 385414.0001878019,
      "lat": 6675341.005997204
    },
    "toPlace": {
      "lon": 384964.0001885815,
      "lat": 6674169.006001084
    },
    "date": "03-15-2016"
  },
  "rawParams" : {
      "fromlat": "6675341",
      "fromlon": "385414",
      "srs": "EPSG:3067",
      "tolat": 6674169,
      "tolon": 384964,
      "showIntermediateStops": "true",
      "mode": "TRANSIT,WALK"
  },
  "plan": {
    "to": {
      "vertexType": "NORMAL",
      "lon": 384956.5360418862,
      "name": "path",
      "orig": "",
      "lat": 6674161.705475632
    },
    "itineraries": [{
      "transfers": 0,
      "walkTime": 456,
      "tooSloped": false,
      "geoJSON": {
        "features": [{
          "properties": {
            "startTime": 1458047075000,
            "distance": 94.13799999999999,
            "endTime": 1458047159000,
            "mode": "WALK"
          },
          "type": "Feature",
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [385414.45446483674, 6675336.332757177],
              [385415.9079986761, 6675329.60061787],
              [385419.78411931184, 6675311.648249717],
              [385420.2686375001, 6675309.40420404],
              [385425.97831893887, 6675279.135628804],
              [385429.40488964797, 6675264.540661857],
              [385433.8738041154, 6675265.515164668],
              [385444.4743939517, 6675267.412126457],
              [385450.0518123396, 6675268.351942614]
            ]
          }
        }, {
          "properties": {
            "startTime": 1458047160000,
            "distance": 1069.048814629873,
            "endTime": 1458047460000,
            "mode": "BUS"
          },
          "type": "Feature",
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [385450.98604568513, 6675262.750515577],
              [385434.77315332775, 6675258.800388909],
              [385421.40124354116, 6675256.990237542],
              [385417.4865728925, 6675255.998392465],
              [385411.8742580078, 6675253.9452814665],
              [385202.49056401144, 6675211.473415871],
              [385163.44741624716, 6675204.897511492],
              [385151.7728819655, 6675204.149497856],
              [385155.1635191147, 6675188.4409225155],
              [385157.0660972193, 6675178.351252927],
              [385161.42556402984, 6675158.1545213675],
              [385168.6565265839, 6675123.379973223],
              [385175.81777551665, 6675086.378757074],
              [385180.62697203126, 6675062.824631586],
              [385183.0490647754, 6675051.604242928],
              [385187.4438081781, 6675032.52089063],
              [385194.19091383903, 6674999.990479476],
              [385198.0664252605, 6674982.037875483],
              [385200.004197551, 6674973.061575304],
              [385200.2790732492, 6674964.13744528],
              [385203.8797752903, 6674955.108978576],
              [385207.6551253562, 6674951.647228453],
              [385214.20200737234, 6674948.098543061],
              [385223.0010447903, 6674945.593666269],
              [385223.9699726902, 6674941.105523219],
              [385229.74867955316, 6674913.063328606],
              [385245.5621044266, 6674833.44232853],
              [385246.9457734486, 6674824.483439384],
              [385246.666475866, 6674815.576698091],
              [385244.4798109858, 6674798.928706493],
              [385240.665055247, 6674783.446208642],
              [385237.0248447778, 6674773.530427418],
              [385231.06253627193, 6674760.344160686],
              [385202.32860465726, 6674711.095713488],
              [385196.4010099738, 6674699.022844071],
              [385193.8692993687, 6674689.072324908],
              [385192.55104921455, 6674682.427052732],
              [385192.82598039147, 6674673.502925021],
              [385193.13584104343, 6674665.692139574],
              [385193.3758515274, 6674655.654669965],
              [385194.72456695954, 6674645.5824200865],
              [385124.00270291336, 6674619.940700274],
              [385097.04412354954, 6674609.642620407],
              [384999.36168313865, 6674573.705409247],
              [384976.9072761902, 6674565.495535407],
              [384935.8437052441, 6674547.84085141],
              [384931.8931342554, 6674545.736177108],
              [384918.93265890784, 6674539.457042833],
              [384903.71965208685, 6674532.134349323],
              [384885.6296804905, 6674521.558881121],
              [384874.2971283657, 6674514.114253474]
            ]
          }
        }, {
          "properties": {
            "startTime": 1458047461000,
            "distance": 449.846,
            "endTime": 1458047833000,
            "mode": "WALK"
          },
          "type": "Feature",
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [384868.9985787524, 6674522.08202142],
              [384901.2279192288, 6674541.1282414105],
              [384902.2316133878, 6674537.75335237],
              [384903.7196520862, 6674532.13434932],
              [384904.6533266493, 6674526.532780787],
              [384904.6533266493, 6674526.532780787],
              [384905.13767137413, 6674524.288666699],
              [384905.6570289009, 6674523.157892813],
              [384906.14137483155, 6674520.913778875],
              [384908.5631148473, 6674509.693210322],
              [384910.5705400114, 6674502.943437114],
              [384919.3354831161, 6674499.32450021],
              [384922.5567036461, 6674495.8798914375],
              [384925.91223978857, 6674479.057772374],
              [384941.72168514726, 6674399.435449401],
              [384954.8704389643, 6674341.071227757],
              [384962.41109765874, 6674298.485492533],
              [384976.38958721096, 6674231.1797913825],
              [384978.8467825592, 6674221.072617269],
              [384980.30011591874, 6674214.340309557],
              [384974.6509897187, 6674211.1745123565],
              [384965.0509514294, 6674205.904010932],
              [384958.74240478454, 6674199.415641807],
              [384952.39884252485, 6674191.8139433125],
              [384951.52400148916, 6674163.980442282],
              [384951.9384519544, 6674159.509656021],
              [384954.19114401663, 6674160.553292177],
              [384956.44383476104, 6674161.596929703]
            ]
          }
        }],
        "type": "FeatureCollection"
      },
      "walkDistance": 544.1543846216343,
      "endTime": 1458047833000,
      "elevationGained": 0,
      "startTime": 1458047075000,
      "duration": 758,
      "waitingTime": 2,
      "elevationLost": 0,
      "walkLimitExceeded": false,
      "legs": [{
        "to": {
          "vertexType": "TRANSIT",
          "stopSequence": 20,
          "lon": 385450.2885716802,
          "stopId": "HSL:1174147",
          "stopIndex": 19,
          "name": "Pasilan asema",
          "arrival": 1458047159000,
          "stopCode": "2101",
          "lat": 6675269.180357049,
          "zoneId": "1"
        },
        "arrivalDelay": 0,
        "pathway": false,
        "agencyTimeZoneOffset": 7200000,
        "intermediateStops": [],
        "steps": [{
          "absoluteDirection": "SOUTH",
          "lon": 385414.7777071727,
          "distance": "73.211",
          "area": "false",
          "stayOn": "false",
          "relativeDirection": "DEPART",
          "elevation": "[]",
          "streetName": "underpass",
          "bogusName": "true",
          "lat": 6675336.55666549
        }, {
          "absoluteDirection": "EAST",
          "lon": 385429.76139242365,
          "distance": "20.927",
          "area": "false",
          "stayOn": "true",
          "relativeDirection": "LEFT",
          "elevation": "[]",
          "streetName": "bike path",
          "bogusName": "true",
          "lat": 6675264.7635302
        }],
        "from": {
          "vertexType": "NORMAL",
          "lon": 385414.0001878019,
          "name": "underpass",
          "departure": 1458047075000,
          "lat": 6675341.005997204
        },
        "rentedBike": false,
        "endTime": 1458047159000,
        "mode": "WALK",
        "startTime": 1458047075000,
        "realTime": false,
        "distance": 94.13799999999999,
        "duration": 84,
        "interlineWithPreviousLeg": false,
        "departureDelay": 0,
        "route": "",
        "legGeometry": {
          "length": 9,
          "geoJSON": {
            "properties": {
              "startTime": 1458047075000,
              "distance": 94.13799999999999,
              "endTime": 1458047159000,
              "mode": "WALK"
            },
            "type": "Feature",
            "geometry": {
              "type": "LineString",
              "coordinates": [
                [385414.45446483674, 6675336.332757177],
                [385415.9079986761, 6675329.60061787],
                [385419.78411931184, 6675311.648249717],
                [385420.2686375001, 6675309.40420404],
                [385425.97831893887, 6675279.135628804],
                [385429.40488964797, 6675264.540661857],
                [385433.8738041154, 6675265.515164668],
                [385444.4743939517, 6675267.412126457],
                [385450.0518123396, 6675268.351942614]
              ]
            }
          },
          "points": "_qlnJovdwCJE^OBAt@WXMAOCe@AS"
        },
        "transitLeg": false
      }, {
        "to": {
          "vertexType": "TRANSIT",
          "stopSequence": 23,
          "lon": 384869.51753494143,
          "stopId": "HSL:1180121",
          "stopIndex": 22,
          "name": "Auroran sairaala",
          "arrival": 1458047460000,
          "stopCode": "2072",
          "lat": 6674522.87923861,
          "zoneId": "1"
        },
        "arrivalDelay": 0,
        "serviceDate": "20160315",
        "agencyTimeZoneOffset": 7200000,
        "routeId": "HSL:1058B",
        "from": {
          "vertexType": "TRANSIT",
          "stopSequence": 20,
          "lon": 385450.2885716802,
          "stopId": "HSL:1174147",
          "stopIndex": 19,
          "name": "Pasilan asema",
          "departure": 1458047160000,
          "arrival": 1458047159000,
          "stopCode": "2101",
          "lat": 6675269.180357049,
          "zoneId": "1"
        },
        "endTime": 1458047460000,
        "agencyId": "HSL",
        "mode": "BUS",
        "realTime": true,
        "startTime": 1458047160000,
        "interlineWithPreviousLeg": false,
        "distance": 1069.048814629873,
        "routeType": 3,
        "headsign": "Meilahti",
        "routeShortName": "58B",
        "transitLeg": true,
        "agencyUrl": "http://www.hsl.fi/",
        "pathway": false,
        "routeLongName": "It�keskus(M)-Pasila-Meilahden klinikat",
        "tripId": "HSL:1058B_20160307_Ti_1_1439",
        "intermediateStops": [{
          "vertexType": "TRANSIT",
          "stopSequence": 21,
          "lon": 385165.8786848344,
          "stopId": "HSL:1171153",
          "stopIndex": 20,
          "name": "Palkkatilanportti",
          "departure": 1458047280000,
          "arrival": 1458047280000,
          "stopCode": "2106",
          "lat": 6675085.074726997,
          "zoneId": "1"
        }, {
          "vertexType": "TRANSIT",
          "stopSequence": 22,
          "lon": 385121.927988764,
          "stopId": "HSL:1171135",
          "stopIndex": 21,
          "name": "El�intarha",
          "departure": 1458047400000,
          "arrival": 1458047400000,
          "stopCode": "2074",
          "lat": 6674627.561718587,
          "zoneId": "1"
        }],
        "steps": [],
        "rentedBike": false,
        "agencyName": "Helsingin seudun liikenne",
        "duration": 300,
        "departureDelay": 0,
        "route": "58B",
        "legGeometry": {
          "length": 51,
          "geoJSON": {
            "properties": {
              "startTime": 1458047160000,
              "distance": 1069.048814629873,
              "endTime": 1458047460000,
              "mode": "BUS"
            },
            "type": "Feature",
            "geometry": {
              "type": "LineString",
              "coordinates": [
                [385450.98604568513, 6675262.750515577],
                [385434.77315332775, 6675258.800388909],
                [385421.40124354116, 6675256.990237542],
                [385417.4865728925, 6675255.998392465],
                [385411.8742580078, 6675253.9452814665],
                [385202.49056401144, 6675211.473415871],
                [385163.44741624716, 6675204.897511492],
                [385151.7728819655, 6675204.149497856],
                [385155.1635191147, 6675188.4409225155],
                [385157.0660972193, 6675178.351252927],
                [385161.42556402984, 6675158.1545213675],
                [385168.6565265839, 6675123.379973223],
                [385175.81777551665, 6675086.378757074],
                [385180.62697203126, 6675062.824631586],
                [385183.0490647754, 6675051.604242928],
                [385187.4438081781, 6675032.52089063],
                [385194.19091383903, 6674999.990479476],
                [385198.0664252605, 6674982.037875483],
                [385200.004197551, 6674973.061575304],
                [385200.2790732492, 6674964.13744528],
                [385203.8797752903, 6674955.108978576],
                [385207.6551253562, 6674951.647228453],
                [385214.20200737234, 6674948.098543061],
                [385223.0010447903, 6674945.593666269],
                [385223.9699726902, 6674941.105523219],
                [385229.74867955316, 6674913.063328606],
                [385245.5621044266, 6674833.44232853],
                [385246.9457734486, 6674824.483439384],
                [385246.666475866, 6674815.576698091],
                [385244.4798109858, 6674798.928706493],
                [385240.665055247, 6674783.446208642],
                [385237.0248447778, 6674773.530427418],
                [385231.06253627193, 6674760.344160686],
                [385202.32860465726, 6674711.095713488],
                [385196.4010099738, 6674699.022844071],
                [385193.8692993687, 6674689.072324908],
                [385192.55104921455, 6674682.427052732],
                [385192.82598039147, 6674673.502925021],
                [385193.13584104343, 6674665.692139574],
                [385193.3758515274, 6674655.654669965],
                [385194.72456695954, 6674645.5824200865],
                [385124.00270291336, 6674619.940700274],
                [385097.04412354954, 6674609.642620407],
                [384999.36168313865, 6674573.705409247],
                [384976.9072761902, 6674565.495535407],
                [384935.8437052441, 6674547.84085141],
                [384931.8931342554, 6674545.736177108],
                [384918.93265890784, 6674539.457042833],
                [384903.71965208685, 6674532.134349323],
                [384885.6296804905, 6674521.558881121],
                [384874.2971283657, 6674514.114253474]
              ]
            }
          },
          "points": "}llnJ{zdwCFx@Bn@@LBRvAlVLjC@h@ZMPGb@Q|@]`A]h@SRI`@Qx@[^ONGNANMDMDWB_@FCp@WlCaANEN?\\DZJPJVRxA`BTRPFJBNALAPAPEp@zFR~AdAzINnA`@pCBLJl@Lt@R~@Lf@"
        }
      }, {
        "to": {
          "vertexType": "NORMAL",
          "lon": 384956.5360418862,
          "name": "path",
          "arrival": 1458047833000,
          "orig": "",
          "lat": 6674161.705475632
        },
        "arrivalDelay": 0,
        "pathway": false,
        "agencyTimeZoneOffset": 7200000,
        "intermediateStops": [],
        "steps": [{
          "absoluteDirection": "NORTHEAST",
          "lon": 384869.51753493806,
          "distance": "412.839",
          "area": "false",
          "stayOn": "false",
          "relativeDirection": "DEPART",
          "elevation": "[]",
          "streetName": "bike path",
          "bogusName": "true",
          "lat": 6674522.879238627
        }, {
          "absoluteDirection": "SOUTH",
          "lon": 384952.82881921425,
          "distance": "37.007000000000005",
          "area": "false",
          "stayOn": "true",
          "relativeDirection": "LEFT",
          "elevation": "[]",
          "streetName": "path",
          "bogusName": "true",
          "lat": 6674192.7811357835
        }],
        "from": {
          "vertexType": "TRANSIT",
          "stopSequence": 23,
          "lon": 384869.51753494143,
          "stopId": "HSL:1180121",
          "stopIndex": 22,
          "name": "Auroran sairaala",
          "departure": 1458047461000,
          "arrival": 1458047460000,
          "stopCode": "2072",
          "lat": 6674522.87923861,
          "zoneId": "1"
        },
        "rentedBike": false,
        "endTime": 1458047833000,
        "mode": "WALK",
        "startTime": 1458047461000,
        "realTime": false,
        "distance": 449.846,
        "duration": 372,
        "interlineWithPreviousLeg": false,
        "departureDelay": 0,
        "route": "",
        "legGeometry": {
          "length": 28,
          "geoJSON": {
            "properties": {
              "startTime": 1458047461000,
              "distance": 449.846,
              "endTime": 1458047833000,
              "mode": "WALK"
            },
            "type": "Feature",
            "geometry": {
              "type": "LineString",
              "coordinates": [
                [384868.9985787524, 6674522.08202142],
                [384901.2279192288, 6674541.1282414105],
                [384902.2316133878, 6674537.75335237],
                [384903.7196520862, 6674532.13434932],
                [384904.6533266493, 6674526.532780787],
                [384904.6533266493, 6674526.532780787],
                [384905.13767137413, 6674524.288666699],
                [384905.6570289009, 6674523.157892813],
                [384906.14137483155, 6674520.913778875],
                [384908.5631148473, 6674509.693210322],
                [384910.5705400114, 6674502.943437114],
                [384919.3354831161, 6674499.32450021],
                [384922.5567036461, 6674495.8798914375],
                [384925.91223978857, 6674479.057772374],
                [384941.72168514726, 6674399.435449401],
                [384954.8704389643, 6674341.071227757],
                [384962.41109765874, 6674298.485492533],
                [384976.38958721096, 6674231.1797913825],
                [384978.8467825592, 6674221.072617269],
                [384980.30011591874, 6674214.340309557],
                [384974.6509897187, 6674211.1745123565],
                [384965.0509514294, 6674205.904010932],
                [384958.74240478454, 6674199.415641807],
                [384952.39884252485, 6674191.8139433125],
                [384951.52400148916, 6674163.980442282],
                [384951.9384519544, 6674159.509656021],
                [384954.19114401663, 6674160.553292177],
                [384956.44383476104, 6674161.596929703]
              ]
            }
          },
          "points": "kbknJ}{bwCc@qBDCHEHC??BA@ABARIJGD_@DK\\MlCaAfBu@jA_@vBy@PIJEDRH`@JTLTp@?FAAGAG"
        },
        "transitLeg": false
      }],
      "transitTime": 300
    }, {
      "transfers": 0,
      "walkTime": 456,
      "tooSloped": false,
      "geoJSON": {
        "features": [{
          "properties": {
            "startTime": 1458047375000,
            "distance": 94.13799999999999,
            "endTime": 1458047459000,
            "mode": "WALK"
          },
          "type": "Feature",
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [385414.45446483674, 6675336.332757177],
              [385415.9079986761, 6675329.60061787],
              [385419.78411931184, 6675311.648249717],
              [385420.2686375001, 6675309.40420404],
              [385425.97831893887, 6675279.135628804],
              [385429.40488964797, 6675264.540661857],
              [385433.8738041154, 6675265.515164668],
              [385444.4743939517, 6675267.412126457],
              [385450.0518123396, 6675268.351942614]
            ]
          }
        }, {
          "properties": {
            "startTime": 1458047460000,
            "distance": 1069.048814629873,
            "endTime": 1458047760000,
            "mode": "BUS"
          },
          "type": "Feature",
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [385450.98604568513, 6675262.750515577],
              [385434.77315332775, 6675258.800388909],
              [385421.40124354116, 6675256.990237542],
              [385417.4865728925, 6675255.998392465],
              [385411.8742580078, 6675253.9452814665],
              [385202.49056401144, 6675211.473415871],
              [385163.44741624716, 6675204.897511492],
              [385151.7728819655, 6675204.149497856],
              [385155.1635191147, 6675188.4409225155],
              [385157.0660972193, 6675178.351252927],
              [385161.42556402984, 6675158.1545213675],
              [385168.6565265839, 6675123.379973223],
              [385175.81777551665, 6675086.378757074],
              [385180.62697203126, 6675062.824631586],
              [385183.0490647754, 6675051.604242928],
              [385187.4438081781, 6675032.52089063],
              [385194.19091383903, 6674999.990479476],
              [385198.0664252605, 6674982.037875483],
              [385200.004197551, 6674973.061575304],
              [385200.2790732492, 6674964.13744528],
              [385203.8797752903, 6674955.108978576],
              [385207.6551253562, 6674951.647228453],
              [385214.20200737234, 6674948.098543061],
              [385223.0010447903, 6674945.593666269],
              [385223.9699726902, 6674941.105523219],
              [385229.74867955316, 6674913.063328606],
              [385245.5621044266, 6674833.44232853],
              [385246.9457734486, 6674824.483439384],
              [385246.666475866, 6674815.576698091],
              [385244.4798109858, 6674798.928706493],
              [385240.665055247, 6674783.446208642],
              [385237.0248447778, 6674773.530427418],
              [385231.06253627193, 6674760.344160686],
              [385202.32860465726, 6674711.095713488],
              [385196.4010099738, 6674699.022844071],
              [385193.8692993687, 6674689.072324908],
              [385192.55104921455, 6674682.427052732],
              [385192.82598039147, 6674673.502925021],
              [385193.13584104343, 6674665.692139574],
              [385193.3758515274, 6674655.654669965],
              [385194.72456695954, 6674645.5824200865],
              [385124.00270291336, 6674619.940700274],
              [385097.04412354954, 6674609.642620407],
              [384999.36168313865, 6674573.705409247],
              [384976.9072761902, 6674565.495535407],
              [384935.8437052441, 6674547.84085141],
              [384931.8931342554, 6674545.736177108],
              [384918.93265890784, 6674539.457042833],
              [384903.71965208685, 6674532.134349323],
              [384885.6296804905, 6674521.558881121],
              [384874.2971283657, 6674514.114253474]
            ]
          }
        }, {
          "properties": {
            "startTime": 1458047761000,
            "distance": 449.846,
            "endTime": 1458048133000,
            "mode": "WALK"
          },
          "type": "Feature",
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [384868.9985787524, 6674522.08202142],
              [384901.2279192288, 6674541.1282414105],
              [384902.2316133878, 6674537.75335237],
              [384903.7196520862, 6674532.13434932],
              [384904.6533266493, 6674526.532780787],
              [384904.6533266493, 6674526.532780787],
              [384905.13767137413, 6674524.288666699],
              [384905.6570289009, 6674523.157892813],
              [384906.14137483155, 6674520.913778875],
              [384908.5631148473, 6674509.693210322],
              [384910.5705400114, 6674502.943437114],
              [384919.3354831161, 6674499.32450021],
              [384922.5567036461, 6674495.8798914375],
              [384925.91223978857, 6674479.057772374],
              [384941.72168514726, 6674399.435449401],
              [384954.8704389643, 6674341.071227757],
              [384962.41109765874, 6674298.485492533],
              [384976.38958721096, 6674231.1797913825],
              [384978.8467825592, 6674221.072617269],
              [384980.30011591874, 6674214.340309557],
              [384974.6509897187, 6674211.1745123565],
              [384965.0509514294, 6674205.904010932],
              [384958.74240478454, 6674199.415641807],
              [384952.39884252485, 6674191.8139433125],
              [384951.52400148916, 6674163.980442282],
              [384951.9384519544, 6674159.509656021],
              [384954.19114401663, 6674160.553292177],
              [384956.44383476104, 6674161.596929703]
            ]
          }
        }],
        "type": "FeatureCollection"
      },
      "walkDistance": 544.1543846216343,
      "endTime": 1458048133000,
      "elevationGained": 0,
      "startTime": 1458047375000,
      "duration": 758,
      "waitingTime": 2,
      "elevationLost": 0,
      "walkLimitExceeded": false,
      "legs": [{
        "to": {
          "vertexType": "TRANSIT",
          "stopSequence": 3,
          "lon": 385450.2885716802,
          "stopId": "HSL:1174147",
          "stopIndex": 2,
          "name": "Pasilan asema",
          "arrival": 1458047459000,
          "stopCode": "2101",
          "lat": 6675269.180357049,
          "zoneId": "1"
        },
        "arrivalDelay": 0,
        "pathway": false,
        "agencyTimeZoneOffset": 7200000,
        "intermediateStops": [],
        "steps": [{
          "absoluteDirection": "SOUTH",
          "lon": 385414.7777071727,
          "distance": "73.211",
          "area": "false",
          "stayOn": "false",
          "relativeDirection": "DEPART",
          "elevation": "[]",
          "streetName": "underpass",
          "bogusName": "true",
          "lat": 6675336.55666549
        }, {
          "absoluteDirection": "EAST",
          "lon": 385429.76139242365,
          "distance": "20.927",
          "area": "false",
          "stayOn": "true",
          "relativeDirection": "LEFT",
          "elevation": "[]",
          "streetName": "bike path",
          "bogusName": "true",
          "lat": 6675264.7635302
        }],
        "from": {
          "vertexType": "NORMAL",
          "lon": 385414.0001878019,
          "name": "underpass",
          "departure": 1458047375000,
          "lat": 6675341.005997204
        },
        "rentedBike": false,
        "endTime": 1458047459000,
        "mode": "WALK",
        "startTime": 1458047375000,
        "realTime": false,
        "distance": 94.13799999999999,
        "duration": 84,
        "interlineWithPreviousLeg": false,
        "departureDelay": 0,
        "route": "",
        "legGeometry": {
          "length": 9,
          "geoJSON": {
            "properties": {
              "startTime": 1458047375000,
              "distance": 94.13799999999999,
              "endTime": 1458047459000,
              "mode": "WALK"
            },
            "type": "Feature",
            "geometry": {
              "type": "LineString",
              "coordinates": [
                [385414.45446483674, 6675336.332757177],
                [385415.9079986761, 6675329.60061787],
                [385419.78411931184, 6675311.648249717],
                [385420.2686375001, 6675309.40420404],
                [385425.97831893887, 6675279.135628804],
                [385429.40488964797, 6675264.540661857],
                [385433.8738041154, 6675265.515164668],
                [385444.4743939517, 6675267.412126457],
                [385450.0518123396, 6675268.351942614]
              ]
            }
          },
          "points": "_qlnJovdwCJE^OBAt@WXMAOCe@AS"
        },
        "transitLeg": false
      }, {
        "to": {
          "vertexType": "TRANSIT",
          "stopSequence": 6,
          "lon": 384869.51753494143,
          "stopId": "HSL:1180121",
          "stopIndex": 5,
          "name": "Auroran sairaala",
          "arrival": 1458047760000,
          "stopCode": "2072",
          "lat": 6674522.87923861,
          "zoneId": "1"
        },
        "arrivalDelay": 0,
        "serviceDate": "20160315",
        "agencyTimeZoneOffset": 7200000,
        "routeId": "HSL:2551",
        "from": {
          "vertexType": "TRANSIT",
          "stopSequence": 3,
          "lon": 385450.2885716802,
          "stopId": "HSL:1174147",
          "stopIndex": 2,
          "name": "Pasilan asema",
          "departure": 1458047460000,
          "arrival": 1458047459000,
          "stopCode": "2101",
          "lat": 6675269.180357049,
          "zoneId": "1"
        },
        "endTime": 1458047760000,
        "agencyId": "HSL",
        "mode": "BUS",
        "realTime": false,
        "startTime": 1458047460000,
        "interlineWithPreviousLeg": false,
        "distance": 1069.048814629873,
        "routeType": 3,
        "headsign": "Westendinasema",
        "routeShortName": "551",
        "transitLeg": true,
        "agencyUrl": "http://www.hsl.fi/",
        "pathway": false,
        "routeLongName": "Pasila-Meilahti-Westendinasema",
        "tripId": "HSL:2551_20160307_Ti_1_1508",
        "intermediateStops": [{
          "vertexType": "TRANSIT",
          "stopSequence": 4,
          "lon": 385165.8786848344,
          "stopId": "HSL:1171153",
          "stopIndex": 3,
          "name": "Palkkatilanportti",
          "departure": 1458047580000,
          "arrival": 1458047580000,
          "stopCode": "2106",
          "lat": 6675085.074726997,
          "zoneId": "1"
        }, {
          "vertexType": "TRANSIT",
          "stopSequence": 5,
          "lon": 385121.927988764,
          "stopId": "HSL:1171135",
          "stopIndex": 4,
          "name": "El�intarha",
          "departure": 1458047700000,
          "arrival": 1458047700000,
          "stopCode": "2074",
          "lat": 6674627.561718587,
          "zoneId": "1"
        }],
        "steps": [],
        "rentedBike": false,
        "agencyName": "Helsingin seudun liikenne",
        "duration": 300,
        "departureDelay": 0,
        "route": "551",
        "legGeometry": {
          "length": 51,
          "geoJSON": {
            "properties": {
              "startTime": 1458047460000,
              "distance": 1069.048814629873,
              "endTime": 1458047760000,
              "mode": "BUS"
            },
            "type": "Feature",
            "geometry": {
              "type": "LineString",
              "coordinates": [
                [385450.98604568513, 6675262.750515577],
                [385434.77315332775, 6675258.800388909],
                [385421.40124354116, 6675256.990237542],
                [385417.4865728925, 6675255.998392465],
                [385411.8742580078, 6675253.9452814665],
                [385202.49056401144, 6675211.473415871],
                [385163.44741624716, 6675204.897511492],
                [385151.7728819655, 6675204.149497856],
                [385155.1635191147, 6675188.4409225155],
                [385157.0660972193, 6675178.351252927],
                [385161.42556402984, 6675158.1545213675],
                [385168.6565265839, 6675123.379973223],
                [385175.81777551665, 6675086.378757074],
                [385180.62697203126, 6675062.824631586],
                [385183.0490647754, 6675051.604242928],
                [385187.4438081781, 6675032.52089063],
                [385194.19091383903, 6674999.990479476],
                [385198.0664252605, 6674982.037875483],
                [385200.004197551, 6674973.061575304],
                [385200.2790732492, 6674964.13744528],
                [385203.8797752903, 6674955.108978576],
                [385207.6551253562, 6674951.647228453],
                [385214.20200737234, 6674948.098543061],
                [385223.0010447903, 6674945.593666269],
                [385223.9699726902, 6674941.105523219],
                [385229.74867955316, 6674913.063328606],
                [385245.5621044266, 6674833.44232853],
                [385246.9457734486, 6674824.483439384],
                [385246.666475866, 6674815.576698091],
                [385244.4798109858, 6674798.928706493],
                [385240.665055247, 6674783.446208642],
                [385237.0248447778, 6674773.530427418],
                [385231.06253627193, 6674760.344160686],
                [385202.32860465726, 6674711.095713488],
                [385196.4010099738, 6674699.022844071],
                [385193.8692993687, 6674689.072324908],
                [385192.55104921455, 6674682.427052732],
                [385192.82598039147, 6674673.502925021],
                [385193.13584104343, 6674665.692139574],
                [385193.3758515274, 6674655.654669965],
                [385194.72456695954, 6674645.5824200865],
                [385124.00270291336, 6674619.940700274],
                [385097.04412354954, 6674609.642620407],
                [384999.36168313865, 6674573.705409247],
                [384976.9072761902, 6674565.495535407],
                [384935.8437052441, 6674547.84085141],
                [384931.8931342554, 6674545.736177108],
                [384918.93265890784, 6674539.457042833],
                [384903.71965208685, 6674532.134349323],
                [384885.6296804905, 6674521.558881121],
                [384874.2971283657, 6674514.114253474]
              ]
            }
          },
          "points": "}llnJ{zdwCFx@Bn@@LBRvAlVLjC@h@ZMPGb@Q|@]`A]h@SRI`@Qx@[^ONGNANMDMDWB_@FCp@WlCaANEN?\\DZJPJVRxA`BTRPFJBNALAPAPEp@zFR~AdAzINnA`@pCBLJl@Lt@R~@Lf@"
        }
      }, {
        "to": {
          "vertexType": "NORMAL",
          "lon": 384956.5360418862,
          "name": "path",
          "arrival": 1458048133000,
          "orig": "",
          "lat": 6674161.705475632
        },
        "arrivalDelay": 0,
        "pathway": false,
        "agencyTimeZoneOffset": 7200000,
        "intermediateStops": [],
        "steps": [{
          "absoluteDirection": "NORTHEAST",
          "lon": 384869.51753493806,
          "distance": "412.839",
          "area": "false",
          "stayOn": "false",
          "relativeDirection": "DEPART",
          "elevation": "[]",
          "streetName": "bike path",
          "bogusName": "true",
          "lat": 6674522.879238627
        }, {
          "absoluteDirection": "SOUTH",
          "lon": 384952.82881921425,
          "distance": "37.007000000000005",
          "area": "false",
          "stayOn": "true",
          "relativeDirection": "LEFT",
          "elevation": "[]",
          "streetName": "path",
          "bogusName": "true",
          "lat": 6674192.7811357835
        }],
        "from": {
          "vertexType": "TRANSIT",
          "stopSequence": 6,
          "lon": 384869.51753494143,
          "stopId": "HSL:1180121",
          "stopIndex": 5,
          "name": "Auroran sairaala",
          "departure": 1458047761000,
          "arrival": 1458047760000,
          "stopCode": "2072",
          "lat": 6674522.87923861,
          "zoneId": "1"
        },
        "rentedBike": false,
        "endTime": 1458048133000,
        "mode": "WALK",
        "startTime": 1458047761000,
        "realTime": false,
        "distance": 449.846,
        "duration": 372,
        "interlineWithPreviousLeg": false,
        "departureDelay": 0,
        "route": "",
        "legGeometry": {
          "length": 28,
          "geoJSON": {
            "properties": {
              "startTime": 1458047761000,
              "distance": 449.846,
              "endTime": 1458048133000,
              "mode": "WALK"
            },
            "type": "Feature",
            "geometry": {
              "type": "LineString",
              "coordinates": [
                [384868.9985787524, 6674522.08202142],
                [384901.2279192288, 6674541.1282414105],
                [384902.2316133878, 6674537.75335237],
                [384903.7196520862, 6674532.13434932],
                [384904.6533266493, 6674526.532780787],
                [384904.6533266493, 6674526.532780787],
                [384905.13767137413, 6674524.288666699],
                [384905.6570289009, 6674523.157892813],
                [384906.14137483155, 6674520.913778875],
                [384908.5631148473, 6674509.693210322],
                [384910.5705400114, 6674502.943437114],
                [384919.3354831161, 6674499.32450021],
                [384922.5567036461, 6674495.8798914375],
                [384925.91223978857, 6674479.057772374],
                [384941.72168514726, 6674399.435449401],
                [384954.8704389643, 6674341.071227757],
                [384962.41109765874, 6674298.485492533],
                [384976.38958721096, 6674231.1797913825],
                [384978.8467825592, 6674221.072617269],
                [384980.30011591874, 6674214.340309557],
                [384974.6509897187, 6674211.1745123565],
                [384965.0509514294, 6674205.904010932],
                [384958.74240478454, 6674199.415641807],
                [384952.39884252485, 6674191.8139433125],
                [384951.52400148916, 6674163.980442282],
                [384951.9384519544, 6674159.509656021],
                [384954.19114401663, 6674160.553292177],
                [384956.44383476104, 6674161.596929703]
              ]
            }
          },
          "points": "kbknJ}{bwCc@qBDCHEHC??BA@ABARIJGD_@DK\\MlCaAfBu@jA_@vBy@PIJEDRH`@JTLTp@?FAAGAG"
        },
        "transitLeg": false
      }],
      "transitTime": 300
    }, {
      "transfers": 0,
      "walkTime": 456,
      "tooSloped": false,
      "geoJSON": {
        "features": [{
          "properties": {
            "startTime": 1458047451000,
            "distance": 94.13799999999999,
            "endTime": 1458047535000,
            "mode": "WALK"
          },
          "type": "Feature",
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [385414.45446483674, 6675336.332757177],
              [385415.9079986761, 6675329.60061787],
              [385419.78411931184, 6675311.648249717],
              [385420.2686375001, 6675309.40420404],
              [385425.97831893887, 6675279.135628804],
              [385429.40488964797, 6675264.540661857],
              [385433.8738041154, 6675265.515164668],
              [385444.4743939517, 6675267.412126457],
              [385450.0518123396, 6675268.351942614]
            ]
          }
        }, {
          "properties": {
            "startTime": 1458047536000,
            "distance": 1069.048814629873,
            "endTime": 1458047836000,
            "mode": "BUS"
          },
          "type": "Feature",
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [385450.98604568513, 6675262.750515577],
              [385434.77315332775, 6675258.800388909],
              [385421.40124354116, 6675256.990237542],
              [385417.4865728925, 6675255.998392465],
              [385411.8742580078, 6675253.9452814665],
              [385202.49056401144, 6675211.473415871],
              [385163.44741624716, 6675204.897511492],
              [385151.7728819655, 6675204.149497856],
              [385155.1635191147, 6675188.4409225155],
              [385157.0660972193, 6675178.351252927],
              [385161.42556402984, 6675158.1545213675],
              [385168.6565265839, 6675123.379973223],
              [385175.81777551665, 6675086.378757074],
              [385180.62697203126, 6675062.824631586],
              [385183.0490647754, 6675051.604242928],
              [385187.4438081781, 6675032.52089063],
              [385194.19091383903, 6674999.990479476],
              [385198.0664252605, 6674982.037875483],
              [385200.004197551, 6674973.061575304],
              [385200.2790732492, 6674964.13744528],
              [385203.8797752903, 6674955.108978576],
              [385207.6551253562, 6674951.647228453],
              [385214.20200737234, 6674948.098543061],
              [385223.0010447903, 6674945.593666269],
              [385223.9699726902, 6674941.105523219],
              [385229.74867955316, 6674913.063328606],
              [385245.5621044266, 6674833.44232853],
              [385246.9457734486, 6674824.483439384],
              [385246.666475866, 6674815.576698091],
              [385244.4798109858, 6674798.928706493],
              [385240.665055247, 6674783.446208642],
              [385237.0248447778, 6674773.530427418],
              [385231.06253627193, 6674760.344160686],
              [385202.32860465726, 6674711.095713488],
              [385196.4010099738, 6674699.022844071],
              [385193.8692993687, 6674689.072324908],
              [385192.55104921455, 6674682.427052732],
              [385192.82598039147, 6674673.502925021],
              [385193.13584104343, 6674665.692139574],
              [385193.3758515274, 6674655.654669965],
              [385194.72456695954, 6674645.5824200865],
              [385124.00270291336, 6674619.940700274],
              [385097.04412354954, 6674609.642620407],
              [384999.36168313865, 6674573.705409247],
              [384976.9072761902, 6674565.495535407],
              [384935.8437052441, 6674547.84085141],
              [384931.8931342554, 6674545.736177108],
              [384918.93265890784, 6674539.457042833],
              [384903.71965208685, 6674532.134349323],
              [384885.6296804905, 6674521.558881121],
              [384874.2971283657, 6674514.114253474]
            ]
          }
        }, {
          "properties": {
            "startTime": 1458047837000,
            "distance": 449.846,
            "endTime": 1458048209000,
            "mode": "WALK"
          },
          "type": "Feature",
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [384868.9985787524, 6674522.08202142],
              [384901.2279192288, 6674541.1282414105],
              [384902.2316133878, 6674537.75335237],
              [384903.7196520862, 6674532.13434932],
              [384904.6533266493, 6674526.532780787],
              [384904.6533266493, 6674526.532780787],
              [384905.13767137413, 6674524.288666699],
              [384905.6570289009, 6674523.157892813],
              [384906.14137483155, 6674520.913778875],
              [384908.5631148473, 6674509.693210322],
              [384910.5705400114, 6674502.943437114],
              [384919.3354831161, 6674499.32450021],
              [384922.5567036461, 6674495.8798914375],
              [384925.91223978857, 6674479.057772374],
              [384941.72168514726, 6674399.435449401],
              [384954.8704389643, 6674341.071227757],
              [384962.41109765874, 6674298.485492533],
              [384976.38958721096, 6674231.1797913825],
              [384978.8467825592, 6674221.072617269],
              [384980.30011591874, 6674214.340309557],
              [384974.6509897187, 6674211.1745123565],
              [384965.0509514294, 6674205.904010932],
              [384958.74240478454, 6674199.415641807],
              [384952.39884252485, 6674191.8139433125],
              [384951.52400148916, 6674163.980442282],
              [384951.9384519544, 6674159.509656021],
              [384954.19114401663, 6674160.553292177],
              [384956.44383476104, 6674161.596929703]
            ]
          }
        }],
        "type": "FeatureCollection"
      },
      "walkDistance": 544.1543846216343,
      "endTime": 1458048209000,
      "elevationGained": 0,
      "startTime": 1458047451000,
      "duration": 758,
      "waitingTime": 2,
      "elevationLost": 0,
      "walkLimitExceeded": false,
      "legs": [{
        "to": {
          "vertexType": "TRANSIT",
          "stopSequence": 20,
          "lon": 385450.2885716802,
          "stopId": "HSL:1174147",
          "stopIndex": 19,
          "name": "Pasilan asema",
          "arrival": 1458047535000,
          "stopCode": "2101",
          "lat": 6675269.180357049,
          "zoneId": "1"
        },
        "arrivalDelay": 0,
        "pathway": false,
        "agencyTimeZoneOffset": 7200000,
        "intermediateStops": [],
        "steps": [{
          "absoluteDirection": "SOUTH",
          "lon": 385414.7777071727,
          "distance": "73.211",
          "area": "false",
          "stayOn": "false",
          "relativeDirection": "DEPART",
          "elevation": "[]",
          "streetName": "underpass",
          "bogusName": "true",
          "lat": 6675336.55666549
        }, {
          "absoluteDirection": "EAST",
          "lon": 385429.76139242365,
          "distance": "20.927",
          "area": "false",
          "stayOn": "true",
          "relativeDirection": "LEFT",
          "elevation": "[]",
          "streetName": "bike path",
          "bogusName": "true",
          "lat": 6675264.7635302
        }],
        "from": {
          "vertexType": "NORMAL",
          "lon": 385414.0001878019,
          "name": "underpass",
          "departure": 1458047451000,
          "lat": 6675341.005997204
        },
        "rentedBike": false,
        "endTime": 1458047535000,
        "mode": "WALK",
        "startTime": 1458047451000,
        "realTime": false,
        "distance": 94.13799999999999,
        "duration": 84,
        "interlineWithPreviousLeg": false,
        "departureDelay": 0,
        "route": "",
        "legGeometry": {
          "length": 9,
          "geoJSON": {
            "properties": {
              "startTime": 1458047451000,
              "distance": 94.13799999999999,
              "endTime": 1458047535000,
              "mode": "WALK"
            },
            "type": "Feature",
            "geometry": {
              "type": "LineString",
              "coordinates": [
                [385414.45446483674, 6675336.332757177],
                [385415.9079986761, 6675329.60061787],
                [385419.78411931184, 6675311.648249717],
                [385420.2686375001, 6675309.40420404],
                [385425.97831893887, 6675279.135628804],
                [385429.40488964797, 6675264.540661857],
                [385433.8738041154, 6675265.515164668],
                [385444.4743939517, 6675267.412126457],
                [385450.0518123396, 6675268.351942614]
              ]
            }
          },
          "points": "_qlnJovdwCJE^OBAt@WXMAOCe@AS"
        },
        "transitLeg": false
      }, {
        "to": {
          "vertexType": "TRANSIT",
          "stopSequence": 23,
          "lon": 384869.51753494143,
          "stopId": "HSL:1180121",
          "stopIndex": 22,
          "name": "Auroran sairaala",
          "arrival": 1458047836000,
          "stopCode": "2072",
          "lat": 6674522.87923861,
          "zoneId": "1"
        },
        "arrivalDelay": 76,
        "serviceDate": "20160315",
        "agencyTimeZoneOffset": 7200000,
        "routeId": "HSL:1058",
        "from": {
          "vertexType": "TRANSIT",
          "stopSequence": 20,
          "lon": 385450.2885716802,
          "stopId": "HSL:1174147",
          "stopIndex": 19,
          "name": "Pasilan asema",
          "departure": 1458047536000,
          "arrival": 1458047535000,
          "stopCode": "2101",
          "lat": 6675269.180357049,
          "zoneId": "1"
        },
        "endTime": 1458047836000,
        "agencyId": "HSL",
        "mode": "BUS",
        "realTime": true,
        "startTime": 1458047536000,
        "interlineWithPreviousLeg": false,
        "distance": 1069.048814629873,
        "routeType": 3,
        "headsign": "Munkkivuori",
        "routeShortName": "58",
        "transitLeg": true,
        "agencyUrl": "http://www.hsl.fi/",
        "pathway": false,
        "routeLongName": "It�keskus(M) - Pasila - Munkkivuori",
        "tripId": "HSL:1058_20160307_Ti_1_1444",
        "intermediateStops": [{
          "vertexType": "TRANSIT",
          "stopSequence": 21,
          "lon": 385165.8786848344,
          "stopId": "HSL:1171153",
          "stopIndex": 20,
          "name": "Palkkatilanportti",
          "departure": 1458047656000,
          "arrival": 1458047656000,
          "stopCode": "2106",
          "lat": 6675085.074726997,
          "zoneId": "1"
        }, {
          "vertexType": "TRANSIT",
          "stopSequence": 22,
          "lon": 385121.927988764,
          "stopId": "HSL:1171135",
          "stopIndex": 21,
          "name": "El�intarha",
          "departure": 1458047776000,
          "arrival": 1458047776000,
          "stopCode": "2074",
          "lat": 6674627.561718587,
          "zoneId": "1"
        }],
        "steps": [],
        "rentedBike": false,
        "agencyName": "Helsingin seudun liikenne",
        "duration": 300,
        "departureDelay": 76,
        "route": "58",
        "legGeometry": {
          "length": 51,
          "geoJSON": {
            "properties": {
              "startTime": 1458047536000,
              "distance": 1069.048814629873,
              "endTime": 1458047836000,
              "mode": "BUS"
            },
            "type": "Feature",
            "geometry": {
              "type": "LineString",
              "coordinates": [
                [385450.98604568513, 6675262.750515577],
                [385434.77315332775, 6675258.800388909],
                [385421.40124354116, 6675256.990237542],
                [385417.4865728925, 6675255.998392465],
                [385411.8742580078, 6675253.9452814665],
                [385202.49056401144, 6675211.473415871],
                [385163.44741624716, 6675204.897511492],
                [385151.7728819655, 6675204.149497856],
                [385155.1635191147, 6675188.4409225155],
                [385157.0660972193, 6675178.351252927],
                [385161.42556402984, 6675158.1545213675],
                [385168.6565265839, 6675123.379973223],
                [385175.81777551665, 6675086.378757074],
                [385180.62697203126, 6675062.824631586],
                [385183.0490647754, 6675051.604242928],
                [385187.4438081781, 6675032.52089063],
                [385194.19091383903, 6674999.990479476],
                [385198.0664252605, 6674982.037875483],
                [385200.004197551, 6674973.061575304],
                [385200.2790732492, 6674964.13744528],
                [385203.8797752903, 6674955.108978576],
                [385207.6551253562, 6674951.647228453],
                [385214.20200737234, 6674948.098543061],
                [385223.0010447903, 6674945.593666269],
                [385223.9699726902, 6674941.105523219],
                [385229.74867955316, 6674913.063328606],
                [385245.5621044266, 6674833.44232853],
                [385246.9457734486, 6674824.483439384],
                [385246.666475866, 6674815.576698091],
                [385244.4798109858, 6674798.928706493],
                [385240.665055247, 6674783.446208642],
                [385237.0248447778, 6674773.530427418],
                [385231.06253627193, 6674760.344160686],
                [385202.32860465726, 6674711.095713488],
                [385196.4010099738, 6674699.022844071],
                [385193.8692993687, 6674689.072324908],
                [385192.55104921455, 6674682.427052732],
                [385192.82598039147, 6674673.502925021],
                [385193.13584104343, 6674665.692139574],
                [385193.3758515274, 6674655.654669965],
                [385194.72456695954, 6674645.5824200865],
                [385124.00270291336, 6674619.940700274],
                [385097.04412354954, 6674609.642620407],
                [384999.36168313865, 6674573.705409247],
                [384976.9072761902, 6674565.495535407],
                [384935.8437052441, 6674547.84085141],
                [384931.8931342554, 6674545.736177108],
                [384918.93265890784, 6674539.457042833],
                [384903.71965208685, 6674532.134349323],
                [384885.6296804905, 6674521.558881121],
                [384874.2971283657, 6674514.114253474]
              ]
            }
          },
          "points": "}llnJ{zdwCFx@Bn@@LBRvAlVLjC@h@ZMPGb@Q|@]`A]h@SRI`@Qx@[^ONGNANMDMDWB_@FCp@WlCaANEN?\\DZJPJVRxA`BTRPFJBNALAPAPEp@zFR~AdAzINnA`@pCBLJl@Lt@R~@Lf@"
        }
      }, {
        "to": {
          "vertexType": "NORMAL",
          "lon": 384956.5360418862,
          "name": "path",
          "arrival": 1458048209000,
          "orig": "",
          "lat": 6674161.705475632
        },
        "arrivalDelay": 0,
        "pathway": false,
        "agencyTimeZoneOffset": 7200000,
        "intermediateStops": [],
        "steps": [{
          "absoluteDirection": "NORTHEAST",
          "lon": 384869.51753493806,
          "distance": "412.839",
          "area": "false",
          "stayOn": "false",
          "relativeDirection": "DEPART",
          "elevation": "[]",
          "streetName": "bike path",
          "bogusName": "true",
          "lat": 6674522.879238627
        }, {
          "absoluteDirection": "SOUTH",
          "lon": 384952.82881921425,
          "distance": "37.007000000000005",
          "area": "false",
          "stayOn": "true",
          "relativeDirection": "LEFT",
          "elevation": "[]",
          "streetName": "path",
          "bogusName": "true",
          "lat": 6674192.7811357835
        }],
        "from": {
          "vertexType": "TRANSIT",
          "stopSequence": 23,
          "lon": 384869.51753494143,
          "stopId": "HSL:1180121",
          "stopIndex": 22,
          "name": "Auroran sairaala",
          "departure": 1458047837000,
          "arrival": 1458047836000,
          "stopCode": "2072",
          "lat": 6674522.87923861,
          "zoneId": "1"
        },
        "rentedBike": false,
        "endTime": 1458048209000,
        "mode": "WALK",
        "startTime": 1458047837000,
        "realTime": false,
        "distance": 449.846,
        "duration": 372,
        "interlineWithPreviousLeg": false,
        "departureDelay": 0,
        "route": "",
        "legGeometry": {
          "length": 28,
          "geoJSON": {
            "properties": {
              "startTime": 1458047837000,
              "distance": 449.846,
              "endTime": 1458048209000,
              "mode": "WALK"
            },
            "type": "Feature",
            "geometry": {
              "type": "LineString",
              "coordinates": [
                [384868.9985787524, 6674522.08202142],
                [384901.2279192288, 6674541.1282414105],
                [384902.2316133878, 6674537.75335237],
                [384903.7196520862, 6674532.13434932],
                [384904.6533266493, 6674526.532780787],
                [384904.6533266493, 6674526.532780787],
                [384905.13767137413, 6674524.288666699],
                [384905.6570289009, 6674523.157892813],
                [384906.14137483155, 6674520.913778875],
                [384908.5631148473, 6674509.693210322],
                [384910.5705400114, 6674502.943437114],
                [384919.3354831161, 6674499.32450021],
                [384922.5567036461, 6674495.8798914375],
                [384925.91223978857, 6674479.057772374],
                [384941.72168514726, 6674399.435449401],
                [384954.8704389643, 6674341.071227757],
                [384962.41109765874, 6674298.485492533],
                [384976.38958721096, 6674231.1797913825],
                [384978.8467825592, 6674221.072617269],
                [384980.30011591874, 6674214.340309557],
                [384974.6509897187, 6674211.1745123565],
                [384965.0509514294, 6674205.904010932],
                [384958.74240478454, 6674199.415641807],
                [384952.39884252485, 6674191.8139433125],
                [384951.52400148916, 6674163.980442282],
                [384951.9384519544, 6674159.509656021],
                [384954.19114401663, 6674160.553292177],
                [384956.44383476104, 6674161.596929703]
              ]
            }
          },
          "points": "kbknJ}{bwCc@qBDCHEHC??BA@ABARIJGD_@DK\\MlCaAfBu@jA_@vBy@PIJEDRH`@JTLTp@?FAAGAG"
        },
        "transitLeg": false
      }],
      "transitTime": 300
    }],
    "from": {
      "vertexType": "NORMAL",
      "lon": 385414.0001878019,
      "name": "underpass",
      "orig": "",
      "lat": 6675341.005997204
    },
    "date": 1458046980000
  }
}

Event methods

getName()

Returns name of the event.

getSuccess()

Returns true or false depending on if the route was got successfully.

getPlan()

Returns route instructions including duration, start time, end time, waiting time, transit time and walking distance.

getRequestParameters()

Returns the parameters that were used to request route. Parameter options are: lang, fromlon, fromlat, tolon, tolat, srs, date, time, arriveby, mode, maxwalkdistance, wheelchair, showIntermediateStops. Parameter documentation is in http://dev.opentripplanner.org/apidoc/0.15.0/resource_PlannerResource.html Allowed parameter values http://dev.opentripplanner.org/apidoc/0.15.0/model.html / Data Types

Examples

Used in routingService bundle in method getRoute:

getRoute: function (params) {
    var me = this;
        getRouteUrl = this.sandbox.getAjaxUrl() + 'action_route=Routing';

    jQuery.ajax({
        data: params,
        dataType : "json",
        type : "GET",
        beforeSend: function(x) {
          if(x && x.overrideMimeType) {
           x.overrideMimeType("application/json");
          }
         },
        url : getRouteUrl,
        error : this.routeError,
        success : function (response) {
            var success = response.success,
                requestParameters = response.requestParameters,
                plan = response.plan;
            var evt = me.sandbox.getEventBuilder('RouteResultEvent')(success, requestParameters, plan, params);
            me.sandbox.notifyAll(evt);
        }
    });
},