NPS research notes: the NPS app's offline downloads (sources, georeferenced brochure maps, park boundaries), HFC starter maps and symbol sheet (linework, color families, swatches), and TODO entries for tablet-friendly UI, NPS parks & maps and a Park Tiles look
This commit is contained in:
1 parent
085c14beca
commit
cb6412f0ba
2 files changed
+227
No files matched your search
@@ -401,3 +401,203 @@ turned up while looking at this:
|
||||
called live.
|
||||
* https://github.com/seankelliher/us-national-parks-alerts — a
|
||||
Vue + Express directory of park alerts, pulled live through this API.
|
||||
|
||||
== The NPS mobile app's offline downloads
|
||||
|
||||
Investigated November 2026 from the Android app (`gov.nps.mobileapp`
|
||||
2.16.0, native Kotlin + Mapbox Maps SDK): the APK pulled over `adb`,
|
||||
strings read out of its `classes*.dex`, plus a Death Valley (`deva`)
|
||||
offline download on a tablet. Nothing was decompiled or executed.
|
||||
|
||||
*There is no single offline bundle.* "Download Offline Content" queues
|
||||
~20 separate per-park fetches and ticks each off in a Room table
|
||||
(`ParkOfflineStorage`: `parkImagesStored`, `mapStored`, `placesStored`,
|
||||
`campGroundsStored`, `autoToursAudioStored`, `roadClosuresStored`, …).
|
||||
Photos and audio land in
|
||||
`/sdcard/Android/data/gov.nps.mobileapp/files/.NPS/{images,audio}/<park>/`.
|
||||
The map and API data go to app-private storage (not readable without
|
||||
root). Where it comes from:
|
||||
|
||||
[cols="2,3,2"]
|
||||
|===
|
||||
| What | Source | Usable?
|
||||
|
||||
| Park content: places, campgrounds, visitor centers, things to do,
|
||||
tours, amenities, road events, passport stamps, webcams
|
||||
| `developer.nps.gov/api/v1/` — the public NPS Data API (see "NPS Data API" above)
|
||||
| Yes. The app embeds its own key; use ours / the MCP instead
|
||||
|
||||
| App config, tours, timelines, transit, brochure-map index
|
||||
| `www.nps.gov/external-resources/mobile/*.json` (e.g.
|
||||
`tours/{parkCode}.json`, `transit.json`, `brochure-maps.json`),
|
||||
`www.nps.gov/external-resources/timelines/{parkCode}.json`
|
||||
| Yes, plain public JSON
|
||||
|
||||
| Audio-described tours
|
||||
| `www.nps.gov/external-resources/audio-described-tours/{parkCode}_IEM.zip`
|
||||
| Public
|
||||
|
||||
| Trails
|
||||
| `www.nps.gov/external-resources/mobile/trails/{parkCode}/data.json`
|
||||
| 404 for deva/yell/grca/yose/zion — only a few parks so far
|
||||
|
||||
| Basemap
|
||||
| Mapbox offline region of the Park Tiles styles
|
||||
(`mapbox://styles/atlas-user/ck58pyquo009v01p99xebegr9` Standard,
|
||||
`…/ck5cpvc2e0avf01p9zaw4co8o` Slate) with the app's token
|
||||
| No — same Mapbox Atlas licensing as <<park-tiles>>
|
||||
|
||||
| Yellowstone live roads
|
||||
| `carto.nps.gov/user/nps-yell/api/v2/sql?format=geojson&q=…`
|
||||
(`roads`, `road_construction`, `road_snowplows`, `road_incidents`,
|
||||
`road_statuses`)
|
||||
| Public GeoJSON, but Yellowstone only
|
||||
|
||||
| Site geometries
|
||||
| `central.nps.gov/data/api/v1/sites/…`
|
||||
| No — 401, internal
|
||||
|
||||
| `nps-one-mobile.s3.amazonaws.com`
|
||||
| Only `safety-notifications.json` and `ar-wip.json`
|
||||
| Nothing of interest
|
||||
|===
|
||||
|
||||
=== Worth taking
|
||||
|
||||
* *Georeferenced brochure maps* (`brochure-maps.json`, also bundled in
|
||||
the APK's `assets/`): 289 Harpers Ferry Center park maps for 219 parks,
|
||||
each with pixel `size`, a GDAL-style `geoTransform` and `proj4` (Web
|
||||
Mercator) — i.e. ready to drop onto the map as a raster `image`
|
||||
source. Public domain as NPS works. `npgallery/GetAsset/{assetID}` is
|
||||
the original print PDF (deva: 205 MB); the app downloads a smaller
|
||||
raster (`fileSize`, deva: 20 MB) from somewhere under
|
||||
`external-resources/mobile-brochure-maps/` whose exact filename
|
||||
pattern isn't visible in the strings — needs a decompiler (jadx) to
|
||||
pin down.
|
||||
* *Park boundaries*: `assets/optimized-park-boundaries.sqlite` in the
|
||||
APK, 3758 rows (`park_code`, bbox, center/radius, `polygon_data`
|
||||
blob) with an R-tree index.
|
||||
* *POIs from the Data API*: campgrounds come with coordinates, site
|
||||
counts, water/toilets/dump station/RV flags, fee, reservation link and
|
||||
current status text — maps straight onto our POI + park4night-style
|
||||
tags. deva returns 12.
|
||||
|
||||
=== Getting the data without our own key
|
||||
|
||||
The home MCP server (`cyanheads/national-parks-mcp-server`, deployed
|
||||
from `home-gitops`, key held there as a Gitea secret) is enough for
|
||||
pulling data. It only wraps parks, campgrounds, alerts, events and
|
||||
activities, though — not `places`, `visitorcenters` or `thingstodo`,
|
||||
which the app also uses. Covering those would need a key of our own
|
||||
(free, https://www.nps.gov/subjects/developer/get-started.htm) or
|
||||
extending the MCP.
|
||||
|
||||
== HFC map standards: Unigrid starter maps and symbol sheet
|
||||
|
||||
Entry point: https://www.nps.gov/subjects/gisandmapping/starter-maps.htm
|
||||
(HFC's "Starter Maps" page — the starter maps below and the symbol sheet are
|
||||
linked from there; the wider map catalog is
|
||||
https://www.nps.gov/subjects/gisandmapping/nps-maps.htm).
|
||||
|
||||
The full NPS map catalog (NPGallery collection "HFC Cartography", ~960 maps,
|
||||
mirrored in `~/Projects/NPS_Maps/npgallery-maps.json`) also holds Harpers
|
||||
Ferry Center's own production templates — public domain like the maps, each a
|
||||
ZIP of Adobe Illustrator files (`.ai` is PDF-compatible: `pdftoppm` renders
|
||||
it, `pdftotext` reads it, and the swatch palette sits as plain XMP
|
||||
`<xmpG:swatchName>` entries inside). Downloaded and rendered to PNG under
|
||||
`~/Projects/NPS_Maps/starter-maps/`:
|
||||
|
||||
[cols="2,3"]
|
||||
|===
|
||||
| Asset | What's in it
|
||||
|
||||
| Unigrid Waysides starter map
|
||||
(`aeb8eaba-a260-4928-8b27-62ebe1ef1fee`)
|
||||
| *"Standard Map Elements for Maps on Wayside Exhibits and Signs" (2006)* —
|
||||
the spec sheet: linework (width, dash pattern, CMYK for every line type),
|
||||
environment color families, NPS pictograms, scale bars, north arrows, road
|
||||
shields, tour stops, "You Are Here" flags, locator symbols. Plus a starter
|
||||
map with the named swatches
|
||||
|
||||
| Unigrid Area / A-width / B-width brochure starter maps
|
||||
(`163a73b8-…`, `7eee590a-…`, `4bb3b9f0-…`)
|
||||
| Brochure-format starter maps carrying the same 16 named swatches (the
|
||||
Area one renders blank — content on hidden layers)
|
||||
|
||||
| Map Symbols — Harpers Ferry Center (`cd253093-6813-471e-9d16-042c2a373a97`)
|
||||
| "NPS Map Symbols: Updated June 2026" — one sheet, ~270 symbols in 16
|
||||
groups, positive and negative versions. By name it's the same set as the
|
||||
307 we vendor (symbol-library 2024 revision) — only "Hiking" has no
|
||||
same-named counterpart in ours. Side-by-side artwork comparison:
|
||||
`~/Projects/NPS_Maps/symbols-compare.py` crops each symbol off the sheet
|
||||
(located by its label's `pdftotext -bbox-layout` box) next to our
|
||||
vendored SVG → `symbols-compare/index.html`
|
||||
|===
|
||||
|
||||
=== Linework (from the 2006 spec)
|
||||
|
||||
Widths are print points on a 22×34 in sheet — relationships matter more than
|
||||
absolute values. CMYK as `C/M/Y/K`; hex is a naive conversion (on screen the
|
||||
printed colors read more muted).
|
||||
|
||||
[cols="2,3"]
|
||||
|===
|
||||
| Line | Spec
|
||||
|
||||
| Limited-access highway | 6 pt 60% black, 9 pt case 90% black
|
||||
| Primary road | 7 pt 60% black
|
||||
| Secondary road | 5 pt 60% black
|
||||
| Unpaved road | 2.5 pt `0/0/20/60` (`#666652`)
|
||||
| 4-wheel-drive road | 2.5 pt `0/0/20/60`, 20 pt dash / 2 pt gap
|
||||
| Street grid | 2 pt white
|
||||
| Parking area | 60% black
|
||||
| Locked gate / overpass ticks | 2 pt 100% black
|
||||
| Drainage | 3 pt `25/5/0/35` (`#7c9da6`)
|
||||
| Intermittent drainage | 3 pt round caps `25/5/0/35`, 18 dash / 8 gap / 1 dash / 8 gap / 1 dash / 8 gap
|
||||
| Waterfall | three parallel 3 pt ticks `25/5/0/35`
|
||||
| Dam / ford / lock | 2 pt tick / two ticks / chevron pointing upstream, black
|
||||
| Ferry route | 2 pt `33/15/0/50` (`#556c80`), 30 dash / 5 gap
|
||||
| Trail | 3 pt in the trail color, 9 dash / 4 gap
|
||||
| Tour route | colored line replacing the road, `80/0/80/40` (`#1f991f`), optional arrow
|
||||
| Steep trail | 2 pt chevron pointing uphill, black
|
||||
| National scenic trail | 3 pt `80/0/80/40`, 9 dash / 4 gap
|
||||
| Railroad | 2 pt solid 60% black + 15 pt ticks (2 dash / 28 gap)
|
||||
| Distance indicator | 12 pt Frutiger 55 Roman
|
||||
|===
|
||||
|
||||
Trail colors: yellow 100%, black 100%, green `80/0/80/40`, red `0/100/100/50`,
|
||||
white.
|
||||
|
||||
=== Color families (from the 2006 spec)
|
||||
|
||||
"Climatic or topographic swatch families" for subject-area fills or
|
||||
background — pick one family per map, any shade; all linework is designed to
|
||||
work with every family:
|
||||
|
||||
[cols="1,3"]
|
||||
|===
|
||||
| Family | Shades (light → dark)
|
||||
|
||||
| Green Forested | `30/15/30/00` `#b2d9b2`, `40/25/40/00` `#99bf99`, `50/35/50/00` `#80a680`
|
||||
| Urban or Alpine | `00/02/04/19` `#cfcac6`, `00/03/06/25` `#bfbab4`, `00/04/09/38` `#9e9890`
|
||||
| Desert or Beach | `00/02/12/15` `#d9d4bf`, `00/04/18/22` `#c7bfa3`, `00/06/28/34` `#a89e79`
|
||||
| Glacial / Arctic | `03/02/00/02` `#f2f5fa`, `08/03/00/04` `#e1edf5`, `12/05/00/07` `#d1e1ed`
|
||||
| Volcanic | `08/20/21/09` `#d5bab7`, `11/30/30/13` `#c59b9b`, `16/44/44/20` `#ab7272`
|
||||
| Drainage & open water | `25/05/00/00`, `25/05/00/20`, `25/05/00/35`
|
||||
| Other-subject area (outside the park) | `00/00/05/05`, `00/07/11/00`, `06/10/10/00`, `08/05/10/00`, `05/07/18/00`, `07/07/05/00`
|
||||
|===
|
||||
|
||||
The starter maps' named swatches (newer than the 2006 sheet, same in all
|
||||
four): Non-subject area `3/6/10/0` (`#f7f0e6`), NPS area `4/2/5/0`
|
||||
(`#f5faf2`), Open water `40/16/0/15` (`#82b6d9`), Drainage & spring
|
||||
`50/20/0.5/20`, Pk bdy `40/20/30/5` (`#91c2aa`), Pk bdy ribbon & name
|
||||
`24/12/20/4` (`#bad7c4`), Park name `35/15/25/10`, Roads `0/50/40/30`
|
||||
(`#b2596b`), Trail lines & distance labels `70/0/60/60` (`#1f6629`),
|
||||
Unmaintained trail `20/50/100/15` (`#ad6c00`), Hydro type `70/30/0.5/30`,
|
||||
Call-out box `60/0/50/50`, Red notes `0/70/56/50`, NPS Green `80/0/80/40`.
|
||||
|
||||
These are print (brochure/wayside) standards, a different system from the
|
||||
web Park Tiles palette in <<park-tiles>> — but the same lineage, and a sourced
|
||||
basis for things like the TODO's "custom vector style using the NPS color
|
||||
palette" (environment families → landcover by region, linework → road/trail
|
||||
hierarchy, Unmaintained trail → tracks).
|
||||
Reference in new issue
Block a user