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
| Name | Type | Description |
|---|---|---|
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,4What it prints (run when this page was built)