Quite simple backend application written in Elixir and Phoenix. Consumes real-time monitoring trams and busses API of ZTM Poznań API (which is public).
ℹ️ Created back in 2019 as a hobby to learn Elixir/Phoenix and React.js (project not published).
At the moment consists only two endpoints:
/request
- proxy to PEKA Wirtualny Monitor (https://www.peka.poznan.pl/vm/)./search
- returns stops matched by provided pattern.
✏️ Features:
Ztm.Workers.ImportStops
daily running worker which downloads list of stops/bollards and updates the database.
💡 Ideas:
- Get rid of
Ztm.Workers.ImportStops
worker and/search
endpoint in favor of caching search requests for bollards. The reason is that stops/bollards data apparently contains inactive stops. - Create LiveView UI to replace React.js application.
Copyright (C) 2022 Mariusz Baleczny
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.