Can you help me with solving a problem? I need to calculate the distance in meters between two GPS coordinates. But I need to do this using pure JavaScript.
The context of this is that my application needs to validate the coordinate of a customer's register with the marking coordinate at the moment of data collection. For example:
- Coordinate customer registration: -23.522490; -46.736600
- Coordinate marking: -23.4446654; -46.5319316
Compare the two coordinates and return the distance between them in meters.