Can I reverse geocode in the description tag?

<Placemark>
      <name>[Name]</name>
      <description>
        <![CDATA[ Here I'd like to have the address of the cordinats
in <Point>
        ]]>
      </description>
      <Point>
        <coordinates>
                13.7, 56.4, 0
           </coordinates>
              </Point>
    </Placemark>
  </Document>

I'd like to use the latlng in <coordinates> to display the address of
that perticular position, how can I do that?

Also I wonder if there exist any way to extract more info from a KML
file from my own defined tags. E.g:


<Placemark>
      <name>[Name]</name>
      <description>
        <![CDATA[ description   ]]>
      </description>
      <myTag> importantData </myTag>
      <Point>
        <coordinates>
                13.7, 56.4, 0
           </coordinates>
              </Point>
    </Placemark>
  </Document>

I'd like to extract the value from the <myTag> e.g. with

google.maps.event.addListener(kmlLayer, 'click', function(kmlEvent) {
                                   alert(kmlEvent.featureData.myTag);
});

in a similar manner that I can reach the description tag with
kmlEvent.featureData.description.

-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to