Reference
The place under a point: country, sea, continent and the nearest city
import { … } from "@johnmorrisdotca/chikyu-earth/place";
Exports
| Name | Kind | What it is |
|---|---|---|
alongTrack | function | The ordered changes of place along a ground track. |
PLACE_COAST_KM | constant | How close to a 1:110m outline, in kilometres, still counts as that country nearby. |
PlaceCities | type | The city lists for placeOf. |
PlaceCity | type | The nearest city, from the lists the caller passed. |
PlaceCountry | type | A country from the outlines. |
PlaceName | type | A named place: an id, and the English and Japanese names. |
PlaceNear | type | The nearest country when the point is outside every outline and within PLACE_COAST_KM of one. |
placeOf | function | The country, sea or ocean, continent and nearest city at one point. |
PlaceOf | type | What placeOf returns. |
PlaceOptions | type | Options for placeOf and alongTrack. |
SEA_REACH_KM | constant | How far from a sea, gulf or bay's own point, in kilometres, a point still counts as that water. |
TrackChange | type | One change along a ground track. |
TrackPlace | type | The place a ground track is in at one sample: a country, a country it is only near, or a sea or ocean. |