Nicely, after a little playing I've changed the var address line in
the javascript at the top of the locator HTML:
----------------------------------------------------------------------------------------------------
function searchLocations() {
var address = document.getElementById('addressInput').value;
geocoder.getLatLng(address, function(latlng) {
if (!latlng) {
alert(address + ' not found');
} else {
searchLocationsNear(latlng);
}
});
}
----------------------------------------------------------------------------------------------------
to
----------------------------------------------------------------------------------------------------
function searchLocations() {
var address = document.getElementById('addressInput').value + ',
UK';
geocoder.getLatLng(address, function(latlng) {
if (!latlng) {
alert(address + ' not found');
} else {
searchLocationsNear(latlng);
}
});
}
----------------------------------------------------------------------------------------------------
Works a treat.
many thanks for your help
Cheers,
Tony
On Oct 8, 3:29 pm, Marcelo <[email protected]> wrote:
> On Oct 8, 4:04 pm, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > Is there an easy way to search/purge a database of non UTF-8 text?
>
> Yes, but that's not a Google Maps API question, and in any case, there
> don't seem to be any within 5000 miles from
> Plymouth:http://www.udoschoice.co.uk/phpsqlsearch_genxml.php?lat=50.3703805&ln...
>
> >Can it be set to only look at the UK? So maybe just append ", UK" to
> >every search query?
>
> Yes. Even if you have it twice, like "Plymouth, UK,UK" the geocoder is
> fine with that.
>
> --
> Marcelo -http://maps.forum.nu
> --
>
> > Cheers,
>
> > Tony
>
> > On Oct 8, 2:49 pm, Mike Williams <[email protected]> wrote:
>
> > > Try looking at what you get if you point your browser directly at that
> > > searchUrl:
>
> > >http://www.udoschoice.co.uk/phpsqlsearch_genxml.php?lat=50.3703805&ln...
> > > .142653&radius=30
>
> > > You get an illegal character on line 47 of your PHP code when attempting
> > > to process some location that's between 4 and 5 miles from the centre of
> > > Plymouth.
>
> > > --
> > > Mike Williamshttp://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---