Hi Barry,

I have search nearest store locations on my web site. It works. But I
need to add some conditions - I want first user will insert a
province, and then the address. So it will search just inside this
particular province. I tried to add javascript if condition at the
beginning, but then the map is not appearing at all.

Do you have any ideas for the best solution?

Thanks

Tali


On May 9, 7:44 am, Barry Hunter <[email protected]> wrote:
> You can also just add ", FR" to your search string, which is probably
> closer to what you want to do. That makes an even stronger suggestion
> to only search in France.
>
> (but you should also check if the user hasnt already added France to
> the search string.
> eg as a regular expressions,
>
> if (locstring.search(/,\s*FR(ance|)\s*$/i) == -1) {
> locstring+= locstring + ", FR";
>
> }
>
> )
>
> On 09/05/2009, Barry Hunter <[email protected]> wrote:
>
>
>
> > You can't explicitly say only France, but can use this:
>
> >  http://code.google.com/apis/maps/documentation/reference.html#GClient...
>
> >  to heavily bias the results.
>
> >  On 09/05/2009, Seb <[email protected]> wrote:
>
> >  >  Hello,
>
> >  >  I used "GClientGeocoder.getLatLng" for search the point from a
> >  >  address.
>
> >  >  It works very well, but GMaps search in the world. I would like to
> >  >  search on a predefined area (only in France for example)
>
> >  >  Have you a idea ?
>
> >  >  Thanks.
>
> >  >  Seb.
>
> > --
> >  Barry
>
> >  -www.nearby.org.uk-www.geograph.org.uk-
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to