Skip to content

Technical choices

miracle091 edited this page Nov 26, 2026 · 2 revisions

Pocket Travel – technical choices

English · Italiano

This wiki explains why Pocket Travel is built the way it is: the technical choices, the rejected alternatives and the known limitations. For how to use the code (build, test, publish), see the developer guide (Italian).

The underlying idea

A travel app that works without a connection and without a project server. Everything it needs is downloaded beforehand, from static files published on GitHub, and then lives on the device. Almost all the choices described here follow from this idea.

Pages

The app

  • App architecture – modules, libraries, database and migrations, first launch, how they are connected.
  • Guide screen – the Guide cards: weather, alerts, vaccinations, embassies, travel advice, exchange rate.
  • Map – offline map, overview map, country map, Navigator and turn-by-turn navigation.
  • Public transport – offline timetables, departures, real time and public transport journeys.
  • AI assistant – the two engines, the configuration and the limits, with three detail pages:
  • Translation – on-device translation with bergamot-translator and translation of the guides in the pipeline.
  • Accessibility and voice – TalkBack, contrast, large text, wheelchair, voice guidance, dictation and reading aloud.
  • Privacy and security – no accounts, encrypted documents, location, signed catalog, keys.

Data and publishing

  • Data and packages – where guides, maps, points of interest and house numbers come from, and how they reach the device.
  • Publishing – GitHub workflows, checks, catalog signing, model SHA-256 hashes, versions.

Reference

At a glance

Topic Choice Why
Backend none: GitHub Pages + releases zero costs and zero user data
Data separate packages per region only what is needed is downloaded
House numbers cells of about 10 MB shared between regions the data grows without redesigning the regions
Map PMTiles extracted on the device no tile server, a single file
Assistant llama.cpp with GGUF models of 0.5–3 GB works offline, even on mid-range devices
Updates automatic weekly pipeline always recent data without manual work
Languages Italian and English: interface, guides, cities, assistant English by default for all devices not set to Italian

Contributing

How to report an error, prepare a change and open a pull request is explained in the contributing guidelines (Italian version).

Everyone who takes part in the project follows the code of conduct (Italian version).

The licenses of software, models and data are on the licenses page, regenerated every time the data is published. The README is available in English and in Italian.

Clone this wiki locally