On Apr 30, 11:49 am, PS <[email protected]> wrote:
>
> For example if I'm trying to search for a place "Gubb" and I want to
> restrict the search to Sweden, how would I do it ?

Add "Sweden" to the end of the string you pass to the geocoder, so
instead of passing "Gubb" you pass "Gubb Sweden"

There are some pitfalls to this method -- such as adding "Sweden" to
"London UK" -- which means you would need to code for a possible
"Nothing found" response; and you might want to check that the
response does return a point within the bounding-box containing
Sweden, as occasionally even providing a country doesn't restrict the
answer.

-- 
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