An open API service indexing awesome lists of open source software.

https://github.com/k-yle/akl-ferry-capacity


https://github.com/k-yle/akl-ferry-capacity

Last synced: 11 days ago
JSON representation

Awesome Lists containing this project

README

          

# Ferry Capacities

![](https://github.com/k-yle/akl-ferry-capacity/actions/workflows/ci.yml/badge.svg)
![](https://github.com/k-yle/akl-ferry-capacity/actions/workflows/process_gtfs.yml/badge.svg)

This app shows you which ferry is currently operating each route in Auckland, and how many passengers and bikes it can take.

It's quite common that the smaller ferries leave people behind because of their limited capacity. This App helps you judge whether to take the ferry or not.

# How it works

All this information is free and publicly available, but it's unfortunately not integrated into the official AT mobile app.

```mermaid
flowchart TD
VesselPositions["Vessel Positions"] -->|via AIS| AT
Cancellations --> AT

VesselDetails["Vessel Capacities"] -->|via Wikipedia| Wikidata
VesselPhotos["Vessel Photos"] -->|via Wikimedia Commons| Wikidata
Wikidata -->|via Sparql query| ThisApp[fa:fa-ship This App]
AT -->|via AT API| ThisApp
Timetables --> AT_GTFS[AT GTFS]
AT_GTFS -->|via .zip file| ThisApp
Logos["Company Logos"] -->|via Facebook| Wikidata
```

Our server consolidates this data into [a single API](https://akl.boats/api/vessel_positions) which the app can use.

# Contributing to the code

If you just want to edit data about vessels, you can do that from [the Wikipedia page](https://en.wikipedia.org/wiki/List_of_Auckland_ferries).

To contribute to the code:

- install NodeJS v18+
- Install Visual Studio Code
- `cd` into the reposity
- run `npm install`
- run `npm run start` to start the server on http://localhost:8788
- open http://localhost:8788 in your web browser