Skip to content

Navigating around TUM with excellence – A website and API to search for rooms, buildings and other places

License

Notifications You must be signed in to change notification settings

TUM-Dev/NavigaTUM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

NavigaTUM

NavigaTUM is a tool developed by students for students, to help you get around at TUM. Feel free to contribute, we are open to new people 😄.

Features/Roadmap

  • 🗺️ Interactive/static maps to look up the position of rooms or buildings
  • 🔍 Fast and typo-tolerant search
  • 💾 Support for different room code formats as well as generic names
  • 🤖 All functionality is also available via an open and well documented API
  • 🗘 Automatically update the data from upstream datasources
  • 🗨️ Allow students/staff to easily submit feedback and data patches
  • 🏫 Generate maps from CAD data sources
  • 🚶🏻 Generate turn by turn navigation advice for navigating end to end

If you'd like to help out or join us in this adventure, we would love to talk to you.

Screenshots

Screenshot of the main-index of the websiteScreenshot of the main-index of the websiteScreenshot of a building including an internal mapScreenshot of a building including an internal map Screenshot of the search-pageScreenshot of the search-pageScreenshot of the mechanical engineering buidlings plan Screenshot of the navigation-pageScreenshot of the navigation-page

API Documentation and native clients

You can consume our API Documentation in two ways:

  • Head over to our Website and look at the interactive documentation
  • We also describe our API in an OpenAPI 3.0 compliant file.
    You can find it here.
    Using this Specification you can generate your own client to access the API in the language of your choice. To do this head over to the Swagger Editor or other similar OpenAPI tools.

Note

The API is still under development, and we are open to Issues, Feature Requests or Pull Requests.

Getting started

Overview

NavigaTUM consists of three main parts + deployment resources.

Depending on what you want to work on, you do not need to set up all of them.

  • data/ contains the code to obtain and process the data
  • server/ contains the APIs written in Rust
  • webclient/ contains a JS based web-frontend for the API
  • map/ contains information about our own map, how to style it and how to run it
  • DEPLOYMENT.md contains deployment related documentation

Let's go through them one by one, but first, you need to clone the repository:

git clone https://github.com/TUM-Dev/Navigatum.git
cd Navigatum

Data Processing

In case you do not want to work on the data processing, you can instead download the latest compiled files by running the server.

Otherwise, you can follow the steps in the data documentation.

Webclient

Follow the steps in the webclient documentation. If you want to only run the webclient locally, you can skip the "Data" and "Server" sections or use docker to run a close-to-production version

By default, the webclient will use the public API. If you want to use a local version, you can use docker to run a close-to-production version.

Further details on our frontend can be found in the webclient documentation.

Server

To build the server locally, you can run the following command:

docker compose -f docker-compose.local.yml up --build

The API will be available at http://localhost:3003 and the frontend at http://localhost:3000.

Note

We also need to run an incremental compilation for our server. The first compilation will be slow, afterward this will only take a bit of time. The local builds also run in PROFILE=debug to improve build-times.

Not beating around the bush: Compilation times for the server are a problem, but we are confident that these can be resolved via upstream language improvements such as polonius, cranelift, paralell-frontend,....

Note

The local build will not deploy a full stack and skips all geodata. As such, the following services are not deployed as their initialisation work is heavy and likely not relevant:

  • valhalla (a routing service),
  • nominatim (for address geocoding)
  • planetiler (for generating basemap tiles database of our tileserver)
  • martin (as it would not have any data to pull on)

Further details on our backend can be found in the server documentation.

Formatting

We have multiple programming languages in this repository, and we use different tools to format them.

since we use pre-commit to format our code, you can install it in an virtual environment with:

python3 -m venv venv
source venv/bin/activate
pip install -r data/requirements.txt -r server/test/requirements.txt -r requirements-dev.txt # for mypy the server and data requirements are needed

To format all files, run the following command:

pre-commit run --all-files

You can also automatically format files on every commit by running the following command:

pre-commit install