Scarygami / location-history-json-converter

Convert the Location History JSON File from Google Takeout into a useable format
Apache License 2.0
481 stars 118 forks source link

Update XML Namespace URI for KML #1

Closed kjkjava closed 11 years ago

kjkjava commented 11 years ago

The XML Namespace http://earth.google.com/kml/2.2 returns a 404, as do other similar Google URIs for KML 2.2. This causes the output not to validate. Changed to http://www.opengis.net/kml/2.2

kjkjava commented 11 years ago

http://feedvalidator.org/ validates this revision just fine, but http://kmlvalidator.com/ does not around the TimeStamp element. It probably couldn't hurt to model the KML after what Latitude's history viewer exports. This would validate fine, require no conversion of the timestamp (though it would be less readable), and include accuracy.

Under the Placemark element:

<Data name="accuracy">
<value>2919</value>
</Data>
<Data name="timestamp">
<value>1307120201074</value>
</Data>
</ExtendedData>

Let me know and I would be happy to change this in another commit.

Scarygami commented 11 years ago

Sounds good, I'm not all that familiar with the KML format actually so would be great if you could do that :)