You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I use this repo to calculate the destination point, the process as follow:
const distance = new LatLon(122.028758, 29.789461)
.distanceTo(new LatLon(122.011392, 29.7752625))
.toFixed() // >> print the 2105 m, this is right
// then i cal the initialBearing
const bearing = new LatLon(122.028758, 29.789461)
.initialBearingTo(new LatLon(122.011392, 29.7752625))
.toFixed(1) // >> it print the 336.6 degree, but i can not verify it
// than i use the destination method to prove the above two method result is right ?
const destPoint = new LatLon(122.028758, 29.789461)
.destinationPoint(distance, bearing)
.toString()
// it print the '57.9713°N, 029.7895°E', but this result it not equal the `122.011392, 29.7752625`
so something i went wrong ?
The text was updated successfully, but these errors were encountered:
A latitude of 122.029° has gone over the north pole and headed back down the other side, travelling 122.029-90 = 32.029° south from the north pole, that is latitude 57.971°N.
This could be rejected as an error, but sometimes it can come out as a valid result of calculations, so e.g. 110°N is considered equivalent to 70°N.
Hi,
I use this repo to calculate the destination point, the process as follow:
so something i went wrong ?
The text was updated successfully, but these errors were encountered: