I need to find google map radius (visible area) in km. Can You give me some example?
i tried
`
var bounds = new google.maps.LatLngBounds();
var sw = bounds.getSouthWest();
var ne = bounds.getNorthEast();
var proximitymeter = google.maps.geometry.spherical.computeDistanceBetween (sw, ne);
`
but it returns same value every time
You’re finding the cross-sectional distance. This will determine the vertical and horizontal distance of the shown map.
From this you can find the “radius”.