Skip to content

Conversation

@eskerda
Copy link
Owner

@eskerda eskerda commented Sep 24, 2025

Digitransit has long deprecated the routing v1 API. The new endpoint uses otp v2, and the routing endpoint uses graphql.

https://digitransit.fi/en/developers/apis/1-routing-api/

There's one endpoint for the whole Finland + Estonia, and then there's separate endpoints for HSL, south west finland and Waltti cities.

There's both a resource for querying by a bbox and one without. Code clarity wise the implementation without bbox and doing the bbox filtering on our side is much clearer so we are going with that. We can potentially move it to use the separate feeds.

Changes

  • Update OTP parser to v2
  • Move digitransit into a separate class
  • Add helsinki as a digitransit instance with a bbox
  • Add more cities from the feed
  • Support vehicles when available
  • Add / remove fields from the gql query as necessary

@eskerda eskerda force-pushed the fix-digitransit branch 2 times, most recently from 24ae008 to 4f634c0 Compare September 25, 2025 09:29
@eskerda eskerda merged commit 2bc9c7c into master Sep 29, 2025
6 checks passed
@eskerda eskerda deleted the fix-digitransit branch September 29, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants