On 18/06/2009, Ego-Ale-Sum <[email protected]> wrote: > > Hello > > I'm using the Geocoding API for an iPhone application: I added a box > where users can search a location, and I display results on a map (of > course, a Google Map :) ). > > However, while realizing that, I found a big problem: how far do I > need to zoom? > The documentation only says the server returns an integer (Accuracy > Level) that tells me if it's a city, region, etc... But, suppose I'm > searching a city: I can't use the same zoom level for Milan and my > town where just 8.000 souls live!!!
Yes "accuracy" is not really suited for zooming. > > So, here comes the nice part. > I found that in responses there was an additional set of information: > ExtendedData -> LatLonBox. > That is perfect, since I can use it to determine exactly how big is > the city/region/road/etc in latitude and longitude. > > My question is... If this data is so useful... Why does the > documentation omit telling about it? Probably as the data was only added relatively recently, and quite simply the documentation hasn't caught up. (Pamela?) > Is it a reliable information? Should be. Google Maps itself uses the same data for the same purpose. > Or > it might be absent in many responses? It 'could' be. If it doesnt exist, just fall back and use a reasonable default. As you say its mostly there. >In all the tests I did, I've > always found that field; but I could just have been lucky > > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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 -~----------~----~----~----~------~----~------~--~---
