Use Case · Mobile & Field Operations

Offline Mobile & Air-Gapped Apps

Open 100% Offline Geocoder Prototype
Replaces Online-only mobile geocoding SDKs

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 ms completely offline on device.
  • Tiny download & memory footprint: Download only the city or metro the user actually visits (for example sf_city at 5.2 MB, seattle at 10.5 MB, nyc_metro at 25.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:

bash
# 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/mobile

Sample Pack Sizes#

Pack IDCompressed DownloadRooftop AddressesCoverage
world_base31.7 MB(global gazetteer)All countries, regions, 53k+ cities, 17,957 airports & landmarks
sf_city5.2 MB244,989San Francisco City
austin9.4 MB306,671Austin Metro
seattle10.5 MB362,101Seattle & Puget Sound
nyc_metro25.5 MB707,284New York City Metro
sf_bay27.7 MB775,648San 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.md for 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:

ts
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:

bash
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.zst

Go Deeper#