T
T
tenaro2016-04-19 15:04:33
JavaScript
tenaro, 2016-04-19 15:04:33

google maps api. How to get the coordinates of a point shifted by n meters?

Distance between the left edge of the map and my point:

var d = google.maps.geometry.spherical.computeDistanceBetween(global.left, current.left)

d = d - 100;

How to get the coordinates (lat lng) of a new point?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2016-04-19
@tenaro

If I understand correctly, you can use google.maps.geometry.spherical.computeOffset

computeOffset(from:LatLng, distance:number, heading:number, radius?:number)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question