On Sep 12, 10:09 am, Gordon Stewart <[email protected]> wrote:
> Hi,
>
> I'm not sure if this is possible - But a recent post made me think of it...
>
> Currently, I'vce got just a standard Google map of our country with
> 5-10 or so markers on it...
>
> Is it possible, to allow someone to enter their address, & it
> calculates the lat / longitude, & figures out :-
>
> 1) The closest marker to their location
>
> and / or
>
> 2) if the closest marker is OVER (xx) miles / KM away from their
> location - 'return' a value to my script so I can then display a
> message (aswell as the new / zoomed in map)
>
http://code.google.com/apis/maps/faq.html#geocoder_differences could
help,
Way I understand json and gmaps absolutely yes and all in javascript,
geocache+reversegeocodw eg
function getAddress(overlay,latlng){
    if(latlng!=null){
        address=latlng;
        geocoder.getLocations(latlng,wAdd);
    }
}
place=response.Placemark[0];#get client
point=new GLatLng(place.Point.coordinates[1],place.Point.coordinates
[0]);
seems with json and more very doable and approximative
(koolbusiness.com/ai) and await many ways with geoip, reverse
geocoding (currently clientside, should get servierside with google or
already thirdparty, geohash, and so.

you may very well look at the script /js/counter.js hastworked a bit,
though you can addressname to coordinate
--~--~---------~--~----~------------~-------~--~----~
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