从java中的kml获取坐标

wd2eg0qa  于 2021-07-08  发布在  Java
关注(0)|答案(0)|浏览(310)

我有一个kml:

Copyright: The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.
Timestamp: 2020-11-23T13:10:02Z</description><Placemark><ExtendedData><Data name="@id"><value>node/7288828998</value></Data><Data name="camera:mount"><value>wall</value></Data><Data name="camera:type"><value>fixed</value></Data><Data name="man_made"><value>surveillance</value></Data><Data name="surveillance"><value>outdoor</value></Data><Data name="surveillance:type"><value>camera</value></Data><Data name="surveillance:zone"><value>entrance</value></Data></ExtendedData><Point><coordinates>13.3832847,52.4863947</coordinates></Point></Placemark><Placemark><ExtendedData><Data name="@id"><value>node/7289162232</value></Data><Data name="camera:type"><value>fixed</value></Data><Data name="man_made"><value>surveillance</value></Data><Data name="surveillance:type"><value>camera</value></Data></ExtendedData><Point><coordinates>13.3865837,52.4872119</coordinates></Point></Placemark><Placemark><ExtendedData><Data name="@id"><value>node/7289162284</value></Data><Data name="camera:type"><value>fixed</value></Data><Data name="man_made"><value>surveillance</value></Data><Data name="surveillance:type"><value>camera</value></Data></ExtendedData><Point><coordinates>13.3864201,52.4871086</coordinates></Point></Placemark></Document></kml>

如何在java(android)中获得坐标13.3832847,52.4863947?我看了谷歌图书馆,但对我也没什么帮助:https://developers.google.com/maps/documentation/android-sdk/utility/kml 也许是为了你?然后我想解析它,但我从来没有解析过,所以我现在不知道怎么做。有人能帮我解决问题吗?如果需要,我可以将kml导出为xml、geojson或其他相关文件。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题