Skip to content

Commit

Permalink
motis v2 for routing, remove implicit paths (user), (maintainer) (#163)
Browse files Browse the repository at this point in the history
* motis v2 for routing, remove implicit paths (user), (maintainer)

* wip

* Move MOTIS_BASE_URL to constants

* Change API for geocoding according to new Motis version

* Remove unused imports

* Remove old geocoding API

* Format

* Update Motis api files

* Remove fare computation

* Use plan Endpoint of Motis instead if route

* Convert time units in booking api

* Use /user routes in test files

* Format

* Use /user route in moveTour test

* Fix postgis version to 3.4.3

* wip

* Add function for oneToMany in lib/api.ts

* Format

* Upload playwright screenshot on failure

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Add function for plan endpoint of motis

* Add screenshot folder to .gitignore

* Simplify expression

* Update Motis api files

* Merge import statements

* Add try/catch for geocode

* Format

* Adjust /request route to new endpoint plan

* Format

* Move mapping to PlanReponse into plan function

* Update src/routes/maintainer/activation/+page.svelte

---------

Co-authored-by: nils <[email protected]>
Co-authored-by: nilspenzel <[email protected]>
  • Loading branch information
3 people authored Nov 21, 2024
1 parent 04369a7 commit 7141314
Show file tree
Hide file tree
Showing 54 changed files with 3,298 additions and 654 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ package-lock.json
yarn.lock

taxidriver-android-app

/src/lib/motis
7 changes: 7 additions & 0 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ jobs:
- name: Unit Tests
run: npm run test:unit

- name: Upload screenshots
if: failure()
uses: actions/upload-artifact@v3
with:
name: screenshots
path: screenshots/

- name: Docker setup-buildx
uses: docker/setup-buildx-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ booking-generator/test
.vscode
/driver-app/.gradle/
/driver-app/.idea
/screenshots
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ yarn.lock
src/lib/components/*
.github/*
migrations/*

src/lib/motis
taxidriver-android-app
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
pg:
image: postgis/postgis
image: postgis/postgis:16-3.4
restart: always
container_name: pg
ports:
Expand Down
Loading

0 comments on commit 7141314

Please sign in to comment.