geo-coord

Coordinates for TypeScript: parse any common notation, format as decimal or DMS, great-circle geodesy, antimeridian-safe paths, compass points. API reference · npm · Source and README · MIT.

This page runs the published package (geo-coord@1) from jsDelivr. Type or paste a coordinate in either box; everything below updates as you type.

Point A

Point B

Examples to try

Each is a different notation the same parser accepts. Send one to A or B.

Between A and B

Destination from A

Bounding box around A

The smallest latitude/longitude box holding every point within the radius — a cheap prefilter before an exact distance check. Across the antimeridian its west edge is east of its east edge; around a pole it spans all longitudes.

Point C against the path from A to B

Cross-track: how far C is from the great circle through A and B, negative to the left looking from A. Along-track: how far from A the nearest point of that path lies, negative if behind A.

Longitude