scaife-viewer / frontend

Skeleton, Widgets, and other frontend packages for the Scaife Viewer
0 stars 3 forks source link

Ensure consistent use of latitude / longitude coordinates #62

Closed jacobwegner closed 2 years ago

jacobwegner commented 2 years ago

MapBox cites GeoJSON's position format dictating longitude, latitude:

https://docs.mapbox.com/mapbox-gl-js/api/geography/#lnglatlike https://geojson.org/geojson-spec.html#positions

ISO 6709 dictates latitude, longitude:

https://en.wikipedia.org/wiki/ISO_6709#Items

For now, we're choosing to store coordinate as lat, lng, so we need to reverse them when passing coordinates to Mapbox.

This wasn't seen on the initial Explore Homer prototype, because the data from Plieades was also returned as longitude, latitude.

Our reason for choosing lat, lng is conformance to the TEI spec:

https://tei-c.org/release/doc/tei-p5-doc/en/html/ref-geo.html