Sample datasets for GeoLibre
These per-city GeoJSON files give the annotation resolver real neighborhood boundaries
for places OSM tags as label-nodes-only (Chinatown, the Marina, the Mission, …), instead of
a flaky live-Overpass lookup or a synthesized buffer disc. Looked up by point-in-polygon +
name (see src/data/neighborhoodPolygons.js).
https://data.sfgov.org/resource/j2bu-swwd.geojson?$limit=100
(HTTP 200, 1,713,909 bytes, retrieved 2026-07-30). The catalog page is the
"Analysis Neighborhoods" map view p5b7-5n3h, which is backed by dataset
j2bu-swwd (columns the_geom, nhood); the legacy
api/geospatial/p5b7-5n3h?method=export endpoint no longer serves the geometry
after DataSF's November 2023 map-format migration.https://data.sfgov.org/api/views/j2bu-swwd.json,
and identically on p5b7-5n3h) declares
"licenseId": "PDDL" / "license": {"name": "Open Data Commons Public Domain Dedication and License", "termsLink": "http://opendatacommons.org/licenses/pddl/1.0/"}.
Public domain — fully compatible with this repo's public release.scripts/build-sf-neighborhoods.mjs (deterministic; re-run it against
the raw download to reproduce the bundled file byte-for-byte):
properties.nhood → properties.name — names kept verbatim, no renames or
aliasing.Polygon; features sorted by name.FeatureCollection with city + features[], each { properties: { name }, geometry: Polygon|MultiPolygon }, coordinates [lon, lat] rounded to 6 decimals. The lookup module
is source-agnostic — to add or swap a city, drop in a file with this shape and register
it in CITY_FILES in src/data/neighborhoodPolygons.js.