standort

🌍 Lookup assets

Standort embeds its lookup datasets at build time.

[!CAUTION] Standort provides coarse country and continent information. GeoLite2 Country estimates are unsuitable for identifying a household, individual, or street address. Natural Earth 1:110m polygons are generalized for schematic world maps and are unsuitable for precise coastline, border, or disputed-boundary decisions.

The MIT license covers repository-owned code. The datasets retain their own terms and attribution requirements, recorded in dataset sources.

🔄 Refresh lookup assets

To update the committed datasets, run the following from the repository root with your MaxMind account ID and license key.

MAXMIND_ACCOUNT_ID=... MAXMIND_LICENSE_KEY=... make update-lookup-assets

The refresh requires curl, jq, shasum, and tar in addition to common POSIX tools. MAXMIND_URL and EARTH_GEOJSON_URL may point to alternate locations of the same GeoLite2 Country and Natural Earth Admin-0 1:110m datasets. The generated provenance and terms assume those dataset identities.

The command checks that each replacement is non-empty, matches the expected dataset shape, and stays within size bounds relative to the current asset. LOOKUP_ASSET_MIN_SIZE_PERCENT defaults to 35 and accepts integers from 1 to 100. LOOKUP_ASSET_MAX_SIZE_PERCENT defaults to 400 and accepts integers of at least 100.

The refresh minifies the GeoJSON, filters the features by country code and continent, and keeps the lookup properties the service needs. It records the resolved source, checksum, and size for each asset in assets/SOURCES.md. If both datasets match the current files, the provenance timestamp stays the same.

When replacing data manually, keep the filenames and formats.

Record the dataset provenance in the asset update, run make features to check lookup behavior, and rebuild the service to embed the new data. Use GetLookupAssets to inspect the assets embedded in a running build.