-1

I am using Google Maps v2 in my application. When the user pans or zooms on the screen I would like to get the map expanded (by x Km) bounding box.

Let's say the black rectangle in this picture https://i.stack.imgur.com/YCtkf.png represents the map view, I want to expand these boundaries by 50 Km from each side (the red rectangle) and get it's LatLng coordinates.

I already know how to get the boundary coordinates of the map (answered here).

Community
  • 1
  • 1
Nabil Echaouch
  • 108
  • 1
  • 7

1 Answers1

0

The solution is to use The haversine formula.

Already answered here.

Community
  • 1
  • 1
Nabil Echaouch
  • 108
  • 1
  • 7