# Data and attribution

## Ski directory and terrain

The modified database under `data/resorts.json` and `data/trails/` is offered
under the [Open Database License 1.0](https://opendatacommons.org/licenses/odbl/1-0/).
Individual contents remain subject to their applicable licenses.

Attribution: Data from **OpenSkiData / OpenSkiMap.org, © OpenStreetMap
contributors (ODbL), Skimap.org, Who’s On First, © Mapterhorn**.

- Source and schema: https://www.openskidata.org/
- Original downloads: https://tiles.openskimap.org/geojson/
- Source timestamps and transformations: `data/provenance.json`
- Reproducible transformation: `scripts/build-data.py`
- Derived database: all directory and per-resort geometry files ship in this package.
- [Free machine-readable download of Alpine’s derived map data](https://alpine-112a1.web.app/open-map-data.html).

The source classifies these areas as operating; this does not mean open today.
Named worldwide downhill ski areas marked operating are included, except explicit
closed/former names. This is worldwide source coverage, not a guarantee that
every ski place exists in the upstream database. The database can be incomplete,
duplicated or outdated. Areas without country metadata retain an unknown-country
label. Cross-border resorts retain all known country codes and one primary region.
Geometry is rounded to six decimal places and stripped of unused attributes.
Original difficulty conventions are retained; difficulty labels and colors vary
by country. Official current prices, webcams and opening reports are separate
sources and are not supplied by this geometry dataset.
Mapped run segments are not official signed trail totals. No current run/lift
opening status is inferred from the geometry.

OpenSkiMap's hosted map tiles are **not** used: this app distributes and serves
its own extracted GeoJSON terrain. Keep the ODbL database and credits available
when redistributing this app or publishing its derived data.

`data/resort-timezones.json` assigns IANA time zones at resort centers using
[Timezone Boundary Builder 2026f](https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2026f)
and © OpenStreetMap contributors (ODbL 1.0), via `timezonefinder-data` 4.2026.6.
Refresh the registry with `python scripts/generate-resort-timezones.py` after
rebuilding the resort directory. The generator documents its pinned dependencies.

The rebuild uses the previous `data/resorts.json` as an identity seed, matching
content IDs and unambiguous upstream OpenStreetMap/Skimap source IDs. The 568
original U.S. IDs are additionally recorded in `data/legacy-us-resort-ids.json`
and checked on rebuild so existing saved mountains, trips and run history keep
their original resort identity. Use `--previous` when building into an empty
output directory. Keep the raw daily snapshot outside the published app.

## Basemaps

- Terrain: © OpenStreetMap contributors, SRTM, Sonny, © OpenTopoMap (CC BY-SA):
  https://opentopomap.org/about
- Satellite: Esri World Imagery. © Esri, Vantor, Earthstar Geographics, and the
  GIS User Community. https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer

Use provider services within their current acceptable-use terms. The app does
not download basemap areas in bulk or promise offline tile coverage. For a
large public product, arrange appropriate production tile service capacity.

## Weather

WeatherKit-enabled iPhone builds use [Apple Weather](https://developer.apple.com/weatherkit/)
and its attribution links. Alpine sends the selected mountain's bundled coordinates.
It uses the bundled time zone registry to calculate forecast and snowfall dates and
caches Apple Weather responses briefly in memory.

The website uses [Open-Meteo](https://open-meteo.com/) data (CC BY 4.0). Its free API
is for noncommercial use and has request limits. Use a commercial plan and protect
its credentials on a server if that use requires one.
Forecast snow is not resort-reported snowfall or base depth.

## Cameras

Camera imagery and players belong to the linked resorts and camera providers.
`data/resort-links.json` records official collection URLs, camera source URLs,
and the date those links were checked. Links and public embeds are provided;
no camera media is downloaded or redistributed in this package. Providers may
restrict embedding, change endpoints, or stop cameras seasonally. No camera
is claimed to be live solely because a player loaded.

`scripts/discover-resort-sources.py` checks public HTTPS operator websites and
their explicitly linked camera, report, trail-map, dining and purchase pages.
It respects robots.txt, limits requests per host, and caches derived links
outside the published database. `data/source-coverage.json` records successful
source evidence and discovery gaps. A successful page response verifies the
link, not today's operating status, a price, or a working live camera feed.
Source discovery never invents numeric prices or official opening reports.

The supplemental `data/resort-webcams.json` also uses public operator widgets
and the [Open Data Hub webcam catalog](https://tourism.api.opendatahub.com/v1/WebcamInfo).
Only open, active catalog records with matching resort names or operator
identity and camera coordinates are used. Each catalog-derived camera records
its source record, metadata license and attribution. The images and streams
stay with their original providers. `data/webcam-coverage.json` records checks,
blocked feeds and feeds withheld because their resort could not be confirmed.

## Resort operations and dining

The Trails panel links to the resort's official report and hours. On iPhone,
these links can open the original website in the system browser sheet.
`data/resort-operation-links.json` lists report and schedule links, along with
dated, locally timed operating schedules where reviewed. Scheduled hours do not
determine current openings. Map colors require current status and a unique
match to mapped terrain. Use resort signs and instructions for current access.

The iPhone app reads CC0 [Open Data Hub](https://docs.opendatahub.com/licensing/)
lift and run records supplied by Dolomiti Superski and the South Tyrol tourism
association (LTS). Open Data Hub's import time is not a status timestamp.
Alpine displays the original report page for operators whose feed is link-only.

`data/resort-dining.json` links to resort dining pages and menu files. The
original provider hosts each menu. Resort menus can change or become unavailable.

Alpine shows reviewed factual rates with links to the operator's booking pages.
Rates that vary by visit date or equipment link to the operator's checkout.
The scanner honors robots.txt and leaves restricted providers, including sites
covered by [Epic's terms](https://www.epicpass.com/policies?tc_1=3) and
[Alterra's terms](https://www.alterramtn.co/en/terms-of-use), as links.

## Libraries and fonts

- Leaflet 1.9.4, BSD-2-Clause; see `vendor/LEAFLET-LICENSE.txt`.
- Manrope by Mikhail Sharanda and contributors, SIL Open Font License 1.1;
  see `assets/MANROPE-LICENSE.txt`.
