PSS68 is a formula used to convert between GPS coordinates (WGS84) and British Grid Coordinates. Here's an implementation of the formula in JavaScript:
index.tsx1760 chars44 lines
You can use this function like so:
index.tsx82 chars3 lines
This will convert the GPS coordinates of London (latitude 51.5074, longitude -0.1278) to British Grid Coordinates (easting 530047, northing 180534).
gistlibby LogSnag