> But can you give me an example about this part if it is possible

Get whatever it is you are using to parse your KML to build you some
array of the Placemarks you are interested in.  Storing the API marker
objects created from the Placemarks might be useful, rather than the
KML itself, as that makes it easy to get lat/long in a useful form.

When you want to check through the array, simply
  for ( key in myArray)  {
        // do something with each object myArray[key]
        // and test for distance from target
        // and do something else if distance is ok
   }

I'm not going to write your code for you, but if you make a start
people will help you out if you hit problems as you work through the
job.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to