Offline Mobile & Air-Gapped Apps
Delivery drivers in underground garages, field technicians in rural areas, aviation/maritime crews, and offline-first travel apps can't depend on a reliable cellular connection just to look up a street address or reverse-geocode a GPS pin.
texspace packages full rooftop-level geocoding into compact downloadable city and metro packs (5–35 MB each) plus a worldwide base gazetteer (31.7 MB covering every country, 53k+ cities, and 17k+ airports). Native iOS (Swift) and Android (Kotlin) SDKs mount downloaded packs directly from device storage in ~10 MB of RAM — and web apps can even run 100% air-gapped from a single 951 KB city bundle.
What this solves#
- Works with zero signal: Forward search, autocomplete, reverse geocoding, and verification run in
1–5 mscompletely offline on device. - Tiny download & memory footprint: Download only the city or metro the user actually visits (for example
sf_cityat5.2 MB,seattleat10.5 MB,nyc_metroat25.5 MB) — peak dirty RAM stays around~10 MB. - Automatic GPS pack selection: Pass the user's current
(lat, lon)to automatically pick and download the covering metro pack. - Custom region extraction: Build an offline pack for any custom bounding box anywhere on Earth with a single CLI command.
Pre-Built Global Metro Packs (51 Ready to Download)#
Inspect all 51 hosted mobile packs (world_base + 50 global metros) or pull the local pack for any coordinate via the CLI:
# List all 51 pre-built packs and compressed download sizes
texspace pull --mobile --list
# Auto-pick and download the covering metro pack for a GPS coordinate
texspace pull --mobile --near 37.7749,-122.4194 --out data/mobile
# Or download specific packs by ID
texspace pull --mobile world_base,sf_city,london --out data/mobileSample Pack Sizes#
| Pack ID | Compressed Download | Rooftop Addresses | Coverage |
|---|---|---|---|
world_base | 31.7 MB | (global gazetteer) | All countries, regions, 53k+ cities, 17,957 airports & landmarks |
sf_city | 5.2 MB | 244,989 | San Francisco City |
austin | 9.4 MB | 306,671 | Austin Metro |
seattle | 10.5 MB | 362,101 | Seattle & Puget Sound |
nyc_metro | 25.5 MB | 707,284 | New York City Metro |
sf_bay | 27.7 MB | 775,648 | San Francisco Bay Area |
Native iOS (Swift) & Android (Kotlin)#
Both mobile/ios/ (Swift Package / XCFramework) and mobile/android/ (Kotlin + JNI) bundle a pure-Rust decompressor and mount multiple downloaded pack files in parallel from a single folder (Documents/texspace_packs/) with zero index rebuild on device.
- Local streets & rooftops resolve automatically against the installed metro pack(s).
- Worldwide cities, airports, and landmarks fall through seamlessly to
world_base.db. - See
mobile/README.mdfor the full 51-pack catalog, Xcode/Swift Package setup, and Gradle/Kotlin integration.
Air-Gapped Web Apps & PWAs (TexspaceOffline)#
For field tablets or strict air-gapped web apps that must make zero network requests after initial load, bundle a compact city pack (e.g. sf_city.txw.zst, 951 KB) and load it directly in browser memory:
import { TexspaceOffline } from "texspace";
const sf = await TexspaceOffline.fromZstdUrl("/packs/sf_city.txw.zst");
console.log(sf.search("4865 Mission St Apt 4B, San Francisco 94112", 3));
console.log(sf.autocomplete("4865 Miss", 5));
console.log(sf.reverse(37.72047, -122.43765, 1));
console.log(sf.verify("4865 Mission St 94112"));
sf.free();You can generate a custom offline web bundle for any bounding box using texspace pack-wasm:
texspace pack-wasm \
--from data/global \
--id custom_city \
--name "Palo Alto, CA" \
--bbox 37.38,-122.20,37.48,-122.08 \
-o palo_alto.txw.zstGo Deeper#
- Embedded SDKs Reference — Rust, Python, DuckDB, C ABI (
texspace.h), and mobile pack building. - CLI Reference —
texspace pack-mobileandtexspace pack-wasmoptions.