opentripplanner in norway...• trip plan computation • trip plans - demand responsive (netex) •...

25
OpenTripPlanner in Norway Andreas Tryti

Upload: others

Post on 31-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

OpenTripPlanner

in Norway

Andreas Tryti

Page 2: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

EnTur• Established in October 2016

• Established to support the Norwegian railway reform

• Owned by the Norwegian Department of Transportation

• ~200 employees (~80 consultants)

National Journey

Planner Project

Page 3: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

Collect all PT-data for the whole of Norway

• ~30 major sources of Timetable data

• ~25 sources of Real-Time data

• maintain a National Stops register

Fully open Journey Planning API

A National Journey Planner

National Hub for Open Data

Page 4: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

• Used OpenTripPlanner for almost 4 years

• Production for ~2 years

• Served more than 120 million requests in march 2019

• ~44 million was journey calculations

• Serves a wide range of clients…

~22 % ~52 % ~11 % ~15 %

Page 5: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

TransmodelIFOPT

NeTEx SIRI

GTFS - model

GTFS GTFS-RT

Data model

“GTFS world” “Transmodel world”

Exchange format –

Static data

Exchange format –

Real-time data

Page 6: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

Timetable & stops data:

Real-time data:

GTFS

NeTEx

GTFS-RT

SIRI

More generic internal model

GTFS based Rest API

Transmodel based GraphQL API

Transmodel compliant OTP

GTFS based GraphQL API

API

Page 7: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

Functionality• Multimodal routing

• National neutral journeyplanning

• Whitelisting/banning of Authorites/Lines/VehicleJourney

• Real-time transit updates

• Prognoses and textual messages

• Street routing (foot, bike, car)

• Height data import with walk/bike speed adjustment

• Transfere/Interchange

• Guaranteed, stay-seated

• Park & Ride, Kiss & Ride, Ride & kiss

• Citybike integration

• Flexible transport (not in production)

Page 8: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

https://api.entur.org/doc/shamash-journeyplanner/

IDE for testing Journey planning API

Query Response API documentation

Page 9: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

Open Street map• Source for street network relevant for walk/bike/car routing

• Stops needs to be connected to street network to be accessible

• Essential part of building routing-graph in OTP

+ One of the strengths of OTP

- Missing map coverage hurts your searches

Page 10: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance
Page 11: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

Graph build process

http://otpdebug.entur.org/

Page 12: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

• Split requests to several requests

(walk, bike, car, transit)

• Split request for long & short

journeys

• Filter obviously “bad” journeys

• Combine/remove walk/bike-legs

Page 13: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

www.en-tur.no

Page 14: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

Ops

• Flexible deployment of OTP

• Rolling update

- Code changes

- Graph changes

• Automatic Scaling

• “Self-healing”

• Metrics

Page 16: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

Current Challenges• ~3 GB Graph-size gives poor performance, especially on longer searches

• OTP 1 relies on single thread performance

• GCP does not focus on single thread performance (AWS and Azure seems to provide ~25% better performance)

• OTP 1 – Cost function

+ works well for a broad perspective on journey options

- Provides difficulties when presenting a “Timetable view”

- May in some cases drop relevant journeys

• Lack of multi-criteria searches

• Price as search criteria

Page 17: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

Open Source

https://github.com/entur

https://github.com/entur/sdk

• “All” code/components Entur works on

(within public transport information) is

open source

• This excludes the Entur Journey Planner

web/APP

• An Software Developer Kit (SDK) is made

open source

• Other OTP-powered Journey planner

clients are open source

Page 18: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

https://betaplanner.trimet.org

Page 19: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

https://reittiopas.hsl.fi/

Page 20: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

OpenTripPlanner

&

EU-regulations

Page 21: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

EU-Regulation -Regulation 2017/1926

• All EU countries must establish a National Access point (NAP) for all national Public Transport data

• Purpose to ensure that EU-wide multimodal travel information services across borders

• Applies to both public and private actors

• Should be applied to all modes of transport

• NeTEx must be used for static PT data

• SIRI should be used for real-time data

• Open Journey Planner (OJP) should be interface for connecting Journey planners

TransmodelIFOPT

NeTEx SIRI

Page 22: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

Timeframe – EU regulation

December 1th 2019

December 1th 2020

December 1th 2021

• Trip plans

scheduled

services (NeTEx)

• Real-time

information (SIRI)

• Trip plan

computation

• Trip plans -

demand

responsive

(NeTEx)

• Fares (NeTEx)

• Support for Open

Journey planner

(OJP)

Page 23: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

OJP – Open Journey Planner

• Standardized interface for distributed Journey planning

• The goal is to enable distributed journey planning for long-distance journey planning

across Europe

Norway

Page 24: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance

Timetable & stops data:

Real-time data:

GTFS

NeTEx

GTFS-RT

SIRI

Transmodel - GraphQL API

Generic internal model

API

Long term goal of OpenTripPlanner

OJP API

GTFS - GraphQL API

Page 25: OpenTripPlanner in Norway...• Trip plan computation • Trip plans - demand responsive (NeTEx) • Fares (NeTEx) ... • The goal is to enable distributed journey planning for long-distance