Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · The globe as an SVG string

routeTextfunction

The route attribute for two places, four decimals.

Import it

import { routeText } from "@johnmorrisdotca/chikyu-earth";

Definition

function routeText(route: { from: GeoPoint; to: GeoPoint; }): string

Parameters

NameTypeDescription
route{ from: GeoPoint; to: GeoPoint; }

The two places.

Returns

string

lon,lat,lon,lat.

Examples

import { routeText } from "@johnmorrisdotca/chikyu-earth";

console.log(routeText({ from: { lon: 1, lat: 2 }, to: { lon: 3, lat: 4 } }));
1,2,3,4

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.