Reference · The globe as an SVG string
GeoPointtype
A point on the globe, in degrees: lon from -180 to 180 (east is positive), lat from -90 to 90 (north is positive).
Import it
import type { GeoPoint } from "@johnmorrisdotca/chikyu-earth";
Definition
interface GeoPoint {
lon: number;
lat: number;
}
Members
| Name | Type | Description |
|---|---|---|
lon | number | |
lat | number |
Examples
import type { GeoPoint } from "@johnmorrisdotca/chikyu-earth";
const tokyo: GeoPoint = { lon: 139.7, lat: 35.7 };
console.log(tokyo);{ lon: 139.7, lat: 35.7 }What it prints (run when this page was built)