HI everyone,

It's a classical use case but I did'nt find any article on that.

My user type his address.
So the Google map dispalyed  is centered on the postal address he has
typed.

Nothing hard upt to here...


But I also have to dsplay nearest POI to his address.

I'm still ok up to here.

But my problem is the zoom level must be updated in function of the
distance of the different poi to display....

Cause if my app find 10  poi near his address in a 100m radius circle
the zoom level
would be very different  if my app found also 10 POi in 10km radius...

I supposed that iohave to take the furthest POI to this address to
calculte the correct zoom levl to apply.

But I don't know how to caluclate that.

On the api i found the different zooom level  that we can use:
https://developers.google.com/maps/documentation/javascript/v2/reference?hl=fr#GGeoAddressAccuracy

but there is no precise metrical information about these different
scal.

Exemple:
For Zoom level 5 (Address level accuracy. )   1 inch on the map is
100,  200 or 500 meters?

For Zoom level 1 (country level accuracy. )   1 inch on the map is
100,  500 or 1000 km?



Is there any gmap api function to detrmine best zoom level
if I give him a center point and a set of nearest marker POI ?


Any help would be very appreciated !!

thx

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to