SPB Git

Repository Public BSD-3-Clause

README.md 14.0 KB 236 lines markdown

1<div align="center">23<img src="docs/brand/logo.svg" alt="ORIX Maps logo" width="560">45<br><br>67<img src="docs/brand/icon.png" alt="ORIX Maps icon" width="112" height="112">89# ORIX Maps1011**Private maps that work offline.**1213An independent, native map app for iPhone and iPad: it draws its own vector maps from open data,<br>14searches, routes and guides on the device — no Apple or Google map service, no account, no tracking.1516**Author: [Simon-Pierre Boucher](https://www.spboucher.ai)**1718![iOS](https://img.shields.io/badge/iOS%20%2F%20iPadOS-18%2B-007AFF?style=for-the-badge&logo=apple&logoColor=white)19![Version](https://img.shields.io/badge/version-1.0.0%20(2)-6366F1?style=for-the-badge)20![Status](https://img.shields.io/badge/status-TestFlight%20internal-D97706?style=for-the-badge)21![Offline](https://img.shields.io/badge/works-offline-00A896?style=for-the-badge)22![author](https://img.shields.io/badge/author-Simon--Pierre%20Boucher-0A66C2?style=for-the-badge)2324![Swift](https://img.shields.io/badge/Swift-6-FA7343?style=flat-square&logo=swift&logoColor=white)25![SwiftUI](https://img.shields.io/badge/UI-SwiftUI-007AFF?style=flat-square)26![Rendering](https://img.shields.io/badge/rendering-MapLibre%20Native%207.0.0%20(Metal)-396CB2?style=flat-square)27![Tiles](https://img.shields.io/badge/tiles-PMTiles%20v3%20%C2%B7%20MVT-4B5563?style=flat-square)28![Search](https://img.shields.io/badge/search-SQLite%20FTS5-003B57?style=flat-square&logo=sqlite&logoColor=white)29![Routing](https://img.shields.io/badge/routing-own%20A*%20engine-3D5AFE?style=flat-square)30![Signing](https://img.shields.io/badge/packages-Ed25519%20signed-10B981?style=flat-square)31![Data](https://img.shields.io/badge/data-OpenStreetMap%20(ODbL)-7EBC6F?style=flat-square&logo=openstreetmap&logoColor=white)3233[![commits](https://git.spboucher.ai/badge/orix-maps/commits.svg?style=flat-square)](https://git.spboucher.ai/orix-maps/commits)34[![last-commit](https://git.spboucher.ai/badge/orix-maps/last-commit.svg?style=flat-square)](https://git.spboucher.ai/orix-maps/commits)35[![activity](https://git.spboucher.ai/badge/orix-maps/activity.svg?style=flat-square)](https://git.spboucher.ai/orix-maps/insights)36[![language](https://git.spboucher.ai/badge/orix-maps/language.svg?style=flat-square)](https://git.spboucher.ai/orix-maps)37[![languages](https://git.spboucher.ai/badge/orix-maps/languages.svg?style=flat-square)](https://git.spboucher.ai/orix-maps/insights)38[![size](https://git.spboucher.ai/badge/orix-maps/size.svg?style=flat-square)](https://git.spboucher.ai/orix-maps)39[![branches](https://git.spboucher.ai/badge/orix-maps/branches.svg?style=flat-square)](https://git.spboucher.ai/orix-maps/branches)40[![tags](https://git.spboucher.ai/badge/orix-maps/tags.svg?style=flat-square)](https://git.spboucher.ai/orix-maps/tags)41[![clones](https://git.spboucher.ai/badge/orix-maps/clones.svg?style=flat-square)](https://git.spboucher.ai/orix-maps)4243![Modules](https://img.shields.io/badge/Swift%20packages-16-8B5CF6?style=flat-square)44![Swift files](https://img.shields.io/badge/Swift%20files-219-8B5CF6?style=flat-square)45![Lines](https://img.shields.io/badge/Swift%20lines-39%20426-8B5CF6?style=flat-square)46![Package tests](https://img.shields.io/badge/package%20tests-444%20passing-10B981?style=flat-square)47![App tests](https://img.shields.io/badge/app%20unit%20tests-97%20passing-10B981?style=flat-square)48![UI tests](https://img.shields.io/badge/UI%20tests-63-10B981?style=flat-square)49![Languages](https://img.shields.io/badge/interface-English%20%C2%B7%20Fran%C3%A7ais-0EA5E9?style=flat-square)50![Themes](https://img.shields.io/badge/map%20themes-8-0EA5E9?style=flat-square)51![Privacy](https://img.shields.io/badge/account%20%C2%B7%20ads%20%C2%B7%20analytics-none-10B981?style=flat-square)5253![Bundle](https://img.shields.io/badge/bundle-ai.spboucher.orix.maps-4B5563?style=flat-square&logo=apple&logoColor=white)54![TestFlight](https://img.shields.io/badge/TestFlight-1.0.0%20(2)%20internal-007AFF?style=flat-square&logo=apple&logoColor=white)55![Xcode](https://img.shields.io/badge/Xcode-27-147EFB?style=flat-square&logo=xcode&logoColor=white)56![Regions](https://img.shields.io/badge/regions-www.orixlab.dev%2Fmaps-00A896?style=flat-square)57![Device](https://img.shields.io/badge/device%20validation-in%20progress-D97706?style=flat-square)5859</div>6061---6263<p align="center">64<img src="docs/screenshots/iphone-en-light-07-map-region.png" width="19%" alt="Vector map of downtown Montréal drawn from a downloaded region">65<img src="docs/screenshots/iphone-en-light-09-search-results.png" width="19%" alt="Offline search results for Stade olympique">66<img src="docs/screenshots/iphone-en-light-30-directions.png" width="19%" alt="Directions with an alternative route and route warnings">67<img src="docs/screenshots/iphone-en-light-33-guidance.png" width="19%" alt="Turn-by-turn guidance in 3D during a simulated drive">68<img src="docs/screenshots/iphone-en-light-16-layers-themes.png" width="19%" alt="The eight ORIX map themes">69</p>7071<p align="center">72<img src="docs/screenshots/iphone-fr-light-10-place-card.png" width="19%" alt="Fiche d'un lieu en français, avec adresse et coordonnées">73<img src="docs/screenshots/iphone-en-light-05-downloads-catalog.png" width="19%" alt="Catalog of downloadable regions">74<img src="docs/screenshots/iphone-en-light-29-track-statistics.png" width="19%" alt="Statistics of a recorded track">75<img src="docs/screenshots/iphone-theme-midnight.png" width="19%" alt="Midnight theme">76<img src="docs/screenshots/iphone-theme-topographic.png" width="19%" alt="Topographic theme">77</p>7879All screenshots in this repository are real captures of the running app on the iOS simulator80(`scripts/uitest.sh iphone --screenshots`); the full inventory is in [`docs/TESTING.md`](docs/TESTING.md).8182## Contents8384- [What it is](#what-it-is) · [State](#state) · [How it works](#how-it-works) · [Modules](#modules)85- [Requirements](#requirements) · [Build and run](#build-and-run) · [Demonstrating offline operation](#demonstrating-offline-operation)86- [Building and publishing regions](#building-and-publishing-regions) · [Release](#release)87- [Data and licences](#data-and-licences) · [Limits to keep in mind](#limits-to-keep-in-mind) · [Author](#author)8889## What it is9091ORIX Maps is not a skin over MapKit. Install the app, download a region once, and everything below runs on the device:9293- **Map** — vector tiles from a local archive, eight themes (ORIX Day, Midnight, Terrain, Minimal, Transit,94  Topographic, Explorer, High Contrast), 3D buildings, a theme editor (Map Studio) and your own GeoJSON / GPX / KML layers.95- **Regions** — signed `.orixmap` packages (map, search index, routing graph) downloaded from96  `www.orixlab.dev`, with resume, verification, update, rollback and import from Files.97- **Search** — names, addresses with house numbers, 64 categories, coordinates, typo correction, reverse geocoding.98- **Directions and guidance** — car, bicycle and walking; stops, alternatives, avoid options; spoken instructions in99  English and French; off-route detection and rerouting; simulated trips.100- **Your data** — collections and saved places with private notes, GPS tracks with statistics and replay, history that101  can be switched off and erased; import and export in GPX, GeoJSON and KML.102- **Privacy** — no account, no advertising, no analytics. The only network requests are the region catalog and the103  region files you choose to download; they carry no position, no search and no identifier104  ([`docs/PRIVACY.md`](docs/PRIVACY.md)).105106## State107108Version **1.0.0 (2)**, on TestFlight for internal testing since 2026-11-25. Not on the App Store; no public beta link.109[`STATUS.md`](STATUS.md) lists every feature with where it was verified (tests, simulator, real infrastructure) and110what still needs a physical device. Next steps: [`ROADMAP.md`](ROADMAP.md). History: [`CHANGELOG.md`](CHANGELOG.md).111112Three pilot regions are published (OpenStreetMap data of 2026-11-24):113114| Region | Package | Contains |115|---|---|---|116| Québec City region | 41 MB | map (zoom 0–15), search, directions |117| Greater Montréal | 222 MB | map (zoom 0–15), search, directions |118| Québec (province) | 1.73 GB | map (zoom 0–14), search, directions |119120## How it works121122```mermaid123flowchart LR124  subgraph Build node125    PBF[OpenStreetMap extract] --> T[Planetiler + Protomaps profile]126    PBF --> G[orix-geocoder-build]127    PBF --> R[orix-routing-build]128    T --> M[map.pmtiles]129    G --> S[search.sqlite]130    R --> O[routing.orixgraph]131    M --> P[orix-package build<br>Ed25519 signature]132    S --> P133    O --> P134  end135  P --> W[www.orixlab.dev/maps/v1<br>catalog + signed packages]136  W -->|HTTPS GET, Range, no identifier| A137  subgraph iPhone / iPad138    A[CatalogClient · DownloadManager] --> V[PackageVerifier] --> RS[RegionStore<br>atomic install]139    RS --> ML[MapLibre Native · Metal]140    RS --> SE[SearchEngine · FTS5]141    RS --> RT[Router · A*] --> NV[NavigationSession · voice]142  end143```144145Architecture, decisions and formats: [`ARCHITECTURE.md`](ARCHITECTURE.md), [`docs/adr/`](docs/adr),146[`docs/ORIXMAP_FORMAT.md`](docs/ORIXMAP_FORMAT.md), [`docs/CATALOG_API.md`](docs/CATALOG_API.md),147[`docs/SECURITY.md`](docs/SECURITY.md), measurements in [`docs/BENCHMARKS.md`](docs/BENCHMARKS.md).148149## Modules150151| Module | Role |152|---|---|153| `ORIXGeoCore` | Coordinates, Web Mercator and tile math, geodesy, coordinate text (decimal, DMS, UTM) |154| `ORIXMapStyle` | The eight themes, theme files, style documents for the tile schema |155| `ORIXMapRenderer` | Engine-neutral map controller; MapLibre Native is the only third-party code in the app |156| `ORIXMapPackage` | `.orixmap` container, signature verification, region store, catalog client, downloads |157| `ORIXSearch` | Offline search and geocoding (SQLite FTS5, grid index, address resolution, categories) |158| `ORIXRouting` | Memory-mapped road graph, A* with turn restrictions, profiles, maneuvers, EN/FR instructions |159| `ORIXNavigation` | Map matching, progress, announcements, off-route detection, voice |160| `ORIXLocation` | Position service with progressive permission; simulated positions |161| `ORIXPlaces` · `ORIXTracks` · `ORIXGeoExchange` | Saved places and history; track recording and replay; GPX / GeoJSON / KML |162| `ORIXTileStore` · `ORIXAtlas` | PMTiles and vector tile reader; prototype of the proprietary Metal engine ([`docs/ATLAS_ENGINE.md`](docs/ATLAS_ENGINE.md)) |163| `ORIXTerrain` · `ORIXPrivacy` · `ORIXDesignSystem` | Elevation profiles (no data distributed yet); log redaction and network policy; interface components |164| `Infrastructure/` | PBF reader, tile / geocoder / routing / package builders, `build-region.sh`, local distribution server |165166## Requirements167168- macOS with Xcode 27 (iOS 27 SDK; the app targets iOS / iPadOS 18.0 and later), XcodeGen (`brew install xcodegen`).169- For building regions: a Mac with Homebrew (`openjdk`, `maven`, `osmium-tool` are installed by the setup step).170171## Build and run172173```bash174scripts/build.sh packages            # tests of every Swift package (macOS)175scripts/build.sh debug               # generate the Xcode project and build for the simulator176scripts/build.sh run -ORIXSkipOnboarding YES          # install and launch on the "ORIXMaps iPhone" simulator177scripts/uitest.sh                    # end-to-end UI tests (see docs/TESTING.md)178```179180The app downloads regions from `https://www.orixlab.dev/maps/v1/`. To work against a local distribution:181182```bash183python3 Infrastructure/distribution/dev-server.py data/dev-dist 8765 &184scripts/build.sh run -ORIXSkipOnboarding YES -ORIXCatalogURL http://127.0.0.1:8765/maps/v1/ -ORIXAutoDownload ca-qc-montreal185```186187Launch arguments for tests and screenshots are documented in [`docs/TESTING.md`](docs/TESTING.md).188189## Demonstrating offline operation1901911. Launch, open **Maps** (menu ⋯ → Downloaded maps), download *Québec City region* (41 MB).1922. Turn the network off (on a device: airplane mode; on the simulator: stop the dev server or use the Network Link193   Conditioner at 100 % loss).1943. The region still draws at every zoom; search "Château Frontenac" or "pharmacie"; touch and hold the map to drop a pin195   and read its nearest address; ask for directions; choose **Preview the drive (simulation)**.1964. The Maps screen shows the catalog from its cache with the date it was fetched, marked as offline.197198On the simulator this sequence is automated by the UI tests. On a physical device it has **not** been run yet.199200## Building and publishing regions201202```bash203# on the build node204Infrastructure/build-region.sh setup                 # tools, tile profile, Swift builders, signing key (first time)205Infrastructure/build-region.sh fetch quebec          # Geofabrik extract, MD5 verified206Infrastructure/build-region.sh build ca-qc-montreal  # extract → tiles → search index → routing graph → signed package207Infrastructure/build-region.sh publish ca-qc-montreal208Infrastructure/build-region.sh deploy                # artefacts first, catalog last, checksums verified on the web node209```210211Regions are declared in `Infrastructure/regions.json`. Formats: [`docs/ORIXMAP_FORMAT.md`](docs/ORIXMAP_FORMAT.md),212[`docs/CATALOG_API.md`](docs/CATALOG_API.md). Measured build times and sizes: [`docs/BENCHMARKS.md`](docs/BENCHMARKS.md).213214## Release215216[`docs/RELEASE.md`](docs/RELEASE.md): `scripts/release.sh archive | export | validate | upload | status`.217218## Data and licences219220Map data © OpenStreetMap contributors (ODbL 1.0); Natural Earth (public domain); land cover © ESA WorldCover (CC BY2214.0). Rendering by MapLibre Native (BSD-2-Clause); label fonts Noto Sans (SIL OFL 1.1). Full register:222[`docs/DATA_SOURCES.md`](docs/DATA_SOURCES.md).223224The source code of ORIX Maps is © 2026 Simon-Pierre Boucher, all rights reserved (see `LICENSE`).225226## Limits to keep in mind227228Maps can be wrong or out of date. There is no live traffic, no closures, no transit schedules. Durations are estimates229without traffic. Not for aviation, marine navigation or emergency use.230231## Author232233**Simon-Pierre Boucher** — ORIX Labs · [www.spboucher.ai](https://www.spboucher.ai) · [git.spboucher.ai](https://git.spboucher.ai) · contact@spboucher.ai234235ORIX family: [www.orixlab.dev](https://www.orixlab.dev)236
Files main
Menu

Theme