UNPKG

haversine-position

Version:

Convert GPS coordinates into local coordinate system relative to the origin with output of [x, y] in meter, bearing(degree) and distance(m)

5 lines (4 loc) 68 B
export interface GpsPoint { lat: number; lng: number; }