The problem with hardcoding is that a portuguese user won't be able to search for spanish cities, for example. In the case of Toledo, his search query would then be Toledo, Portugal. I guess I'm back to setBaseCountryCode/setViewport, right?
On 3 Set, 02:43, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > nobelium wrote: > > I've read that entry of the FAQ, but isn't setBaseCountryCode/ > > setViewport supposed to, at least, help reduce the different map set > > consequences? > > I don't know that I would say it is supposed to "reduce the different > map set consequences". It is supposed to help the geocoder decide how > to produce the correct answer. > > > > > What other options can I look at? Hardcoding ", Portugal" to all > > search queries according to the site's i18n selected culture? > > That would be one option. Just make sure to deal with the case that > the user has already put the "Portugal" in the query. > > > > > Thanks > > > On 2 Set, 23:42, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > On Sep 2, 3:10 pm, nobelium <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > > > I'm a developer atwww.gasmappers.com, a petrol price comparison > > > > website, and we've implemented google maps API for our mapping > > > > resources. However, when we search for known cities in Portugal like > > > > "Braga" or "Porto" using our search box, we get different results then > > > > the ones from maps.google.com. We've tried setBaseCountryCode and > > > > setViewport, but none of those options enabled the same search > > > > experience on our maps api implementation. On a side note, when we > > > > explicitly add the country in the search query, like "Braga, > > > > Portugal" > > > > or "Porto, Portugal", the marker is placed exactly like > > > > maps.google.com search, except it's not needed in the last one. > > > > > Any help would be appreciated. > > > > FAQ:http://code.google.com/apis/maps/faq.html#geocoder_differences --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
