Guide · Evaluation, Migration & Trust

Migrating, Comparisons & Security/Licensing FAQ

Choosing a geocoder isn't only a technical decision — engineering leads, security reviewers, and legal teams all need clear answers on accuracy, total cost, permanent data storage rights, customer PII handling, self-hosted SLA ownership, and honest tradeoffs. This guide puts every answer and migration recipe in one place.

Side-by-Side Comparison#

Accuracy numbers below come from our strictly independent 440-query, 9-country, 5-continent Third-Party Global Civic Holdout (report & scripts, zero records sampled from Overture, OSM, OpenAddresses, or GeoNames).

Dimensiontexspace (Serverless)texspace (Self-Hosted)Google Maps / PlacesMapbox v6Pelias / Geocode EarthNominatim
Holdout Top-1 Accuracy94.1% (14.3 m p50)95.2% (12.7 m p50)93.6% (20.9 m)87.5% (19.6 m)76.6% (23.4 m)— (55.6% GH6 Messy)
Cost per 1M Lookups~$0 (static storage)$0 (single $30/mo VPS)$5,000 (Places: $2.83–$17/1k)$750–$5,000$500–$1,000 (or 128 GB cluster)Free (64–128 GB RAM box)
Server RAM Required0 MB (runs in browser/edge)4–16 GB (65 MB idle heap)Managed APIManaged API64–128 GB64–128 GB
Planet Storage8.8 GB (S3 / R2 / CDN)~100 GiB NVMeManaged APIManaged API300+ GB900 GB–1 TB
Setup Time0 sec (point to URL)~15 min (texspace pull)API key + billingAPI key + billing18–48 hrs indexing24–72 hrs indexing
Permanent Coordinate StorageYes (MIT + OSMF Guideline)Yes (MIT + OSMF Guideline)Restricted (§3.2.3(a))Paid Permanent tier onlyYesYes
Customer PII Sent to 3rd PartyNone (anonymous Range reads)None (inside your VPC)Every request loggedEvery request loggedNone (self-hosted)None (self-hosted)
Custom Polygons & Private SitesBuilt-in (enrich, mountGeoJSON)Built-in (build-overlay)No (separate stack)No (separate stack)NoNo

3-Minute Migration Recipes#

Replace the billed Google Maps Places script + session token management with <texspace-address-input> (or <TexspaceAddressInput /> in React):

html
<!-- Before: Google Maps Places JS SDK + API key + per-session billing -->
<!-- <script src="https://maps.googleapis.com/maps/api/js?key=AIza...&libraries=places"></script> -->

<!-- After: Zero API keys, $0/mo, zero PII uploaded, auto-fills sibling <form> fields -->
<script type="module" src="https://cdn.jsdelivr.net/npm/texspace/element.js"></script>

<form>
  <texspace-address-input name="address1" verify placeholder="Shipping address..."></texspace-address-input>
  <input name="address2" autocomplete="shipping address-line2" placeholder="Apt / Suite" />
  <input name="city" autocomplete="shipping address-level2" placeholder="City" />
  <input name="state" autocomplete="shipping address-level1" placeholder="State" />
  <input name="zip" autocomplete="shipping postal-code" placeholder="Postal code" />
  <input name="country" autocomplete="shipping country-name" placeholder="Country" />
</form>

Can we legally store geocoded coordinates permanently in our database?#

Yes. Unlike Google Maps Platform (§3.2.3(a)) and standard Mapbox plans, texspace imposes zero restrictions on storing or caching coordinates, standardized addresses, parcel APNs, or timezones in your own database or data warehouse:

  • Source code: MIT License — permissive commercial use with zero copyleft requirements.
  • Open data & ODbL clarity: Pre-built shards combine Overture Maps (CDLA-Permissive-2.0 / ODbL-1.0), OpenStreetMap (ODbL-1.0), Public Domain national address registries (USDOT NAD, StatCan, G-NAF, Cadastre Etalab), and GeoNames (CC-BY-4.0). Under the official OpenStreetMap Foundation Geocoding Guideline, geocoding outputs (coordinates linked to your own customer or order records) constitute a Collective Database / Produced Work — storing geocoded results in your proprietary database does not trigger ODbL share-alike obligations on your customer data.
  • Required attribution: Include a standard data attribution line on maps or about/credits pages (see ATTRIBUTION.md):
text
Geocoding powered by texspace. Data © OpenStreetMap contributors (ODbL), Overture Maps Foundation, and public civic address registries.

Does any customer PII leave the browser or our VPC?#

No — verifiable in DevTools.

  • Serverless browser / edge mode: Your customer's street address, apartment number, or CSV row is tokenized and matched strictly inside local WebAssembly RAM. The browser only fetches anonymous 16–32 KB compressed byte slices (HTTP 206 Partial Content) from static .txg archives — no street address, customer name, or search string ever appears in any URL, query parameter, header, or request body.
  • Self-hosted / DuckDB / Mobile mode: Runs 100% locally inside your VPC, data warehouse, or on-device storage with zero outbound calls.

Should we depend on shards.texspace.dev in production, or host the files ourselves?#

  • Prototypes, dev environments & low/medium traffic: https://shards.texspace.dev/txg/v2 is free, CORS-enabled, and cached on Cloudflare's global edge network.
  • High-volume or SLA-critical production (recommended): Mirror the immutable 8.8 GB static files into your own AWS S3, Cloudflare R2, or GCS bucket (or pull just the single state/country shard you need — e.g. us_ca.txg is ~350 MB). On Cloudflare R2, hosting the entire planet costs ~$0.13/month with $0 egress fees, completely under your own AWS/Cloudflare account, IAM policies, and uptime SLA. See Hosting, Caching & Self-Hosting for exact CORS headers and Cloudflare Worker R2 bindings.

How fresh is the geographic data?#

  • Monthly planet releases: Updated .txg and SQLite shards are published monthly with SHA-256 manifests (texspace update --db <dir> performs incremental atomic upgrades).
  • Minutely live OpenStreetMap sync (self-hosted): Run texspace serve --db <dir> --osm-sync minute to stream official OpenStreetMap .osc.gz diffs with zero-downtime hot reload.
  • Instant private additions: Add newly built subdivisions, private depots, or temporary venues immediately via geo.mountGeoJSON() or texspace pack-overlay.

Honest Tradeoffs: When to Use texspace vs. Commercial APIs#

We want you to adopt texspace where it genuinely wins:

  • Where texspace excels: Street addresses, rooftop & cadastral parcel precision, checkout autofill & verification, private store/warehouse locators, custom territory point-in-polygon enrichment, private HIPAA/GDPR batch CSV & DuckDB pipelines, AI agent grounding, offline iOS/Android mobile apps, and low-RAM self-hosting.
  • Where Google Maps / Foursquare / Mapbox still lead: Long-tail commercial business directories (small-business phone numbers, user star ratings, photos, real-time restaurant opening hours, and newly opened storefronts not yet mapped in Overture/OSM). If your product is a Yelp-style restaurant review finder, pair a commercial POI directory with texspace for address/territory workloads.

Next Steps#