I am writing a java program to generate a calculated distance from a mathematical formula. I want to add this value to a location coordinate value obtained from google maps in order to get the new location coordinate.How can i add the distance to geo-location in my program?
Asked
Active
Viewed 159 times
-1
-
Requests for libraries or other third-party resources are off-topic here. – Jonathan Hall May 22 '19 at 09:39
-
well,thanks ill have a look at it. – Navodya Galagedara May 22 '19 at 09:44
1 Answers
0
to do the conversions between geoloaction coordinates and distances in meters, nautical mile conversions has to be taken to consideration.This is possible in a manual calculation. but projection system or the coordinate s system of the maps used should be known.
-
I also found out that there is a library called geometry in google maps API which enables to do this using the method compute offset.https://developers.google.com/maps/documentation/javascript/reference/geometry#spherical.computeOffset – Navodya Galagedara Jun 22 '19 at 19:32