HSLdevcom / HSLdevcom/digitransit-ui

How to use Digitransit UI for OTP with API key?

Open
#4,181 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
267
Forks
145
Avg merge
1d 15h
Merged PRs (30d)
75

Description

Hi folks,
Thank you very much for creating and maintaining this repository. Please accept my appreciation!

I am new to the Digitransit UI. I would like to use it as UI for the following OpenTripPlaner API.

The following curl instruction is an example on how to use this API. You can see that an API key is required to use this API.

curl -X GET 'http://gtfsr.vbn.de/api/routers/connect/plan?arriveBy=false&date=05-25-2021&fromPlace=53.08287,8.81334&toPlace=53.05270,8.78617&time=13:00:00&mode=WALK,TRANSIT&maxWalkDistance=300' -H 'Authorization: insert API key' -H 'Host: gtfsr.vbn.de'

Considering the API key, would you say I am still able to interact with this UI? If yes, I appreciate any advice how to achieve it. Cheers!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the curl request in the issue, especially the Authorization header and the OpenTripPlanner endpoint. Inspect the repository's existing UI request and configuration documentation to determine whether an API key can be supplied. Done means documenting a supported configuration or clearly stating that this integration is not supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.