1

I have few values of latitude and longitude.

How can i found centralized latitude and longitude from them? and How can i find out proper zoom parameter?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Pradip
  • 1,317
  • 4
  • 21
  • 36
  • are you trying to center the map and plotting the markers with the lat and lng values? or are you simply wish to find only the center point? – KJYe.Name Dec 21 '10 at 18:04

1 Answers1

1

You can reverse your question - use the technique from this SO question to find the bounding rectangle, then take the average of the corners to find the central point. The distance across the rectangle defines the required zoom.

Community
  • 1
  • 1
mtrw
  • 34,200
  • 7
  • 63
  • 71