How to extract the coordinates and names (labels) of a number of locations from a .kmz file in R

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to extract the coordinates and names (labels) of a number of locations from a .kmz file in R



I need to extract the coordinates and names (labels) of a number of locations from a .kmz file in R. I already know how to get the latitude and longitudes using the getKMLcoordinates function but I do not know how to get their corresponding names.





I found the answer here posted by Clay
– Nile
Aug 13 at 7:03




1 Answer
1



A KML file is basically a XML file, therefore you could use any XML-package (e.g. xml2) to access all nodes within your KML-file.
If you provide your file or a snippet of the structure we could help you more specific.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS