Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specifying accuracy in GPX or KML

Tags:

android

kml

gpx

I am developing an Android application and would like to play a recorded track in DDMS tool. Besides latitude and longitude, my recorded data has horizontal accuracy which I'd like to pass to Android phone simulator.

Is there a way to specify accuracy in GPX or KML formats?

like image 581
GregK Avatar asked Mar 03 '11 19:03

GregK


People also ask

What information does a GPX file contain?

A GPX file, also known as a GPS Exchange Format file, is simply a text file with geographic information such as waypoints, tracks, and routes saved in it. You can use GPX files to transfer that information between GPS units and computers.

What is GPX data?

GPX, or GPS exchange format, is an XML file format for storing coordinate data. It can store waypoints, tracks, and routes in a way that is easy to process and convert to other forms.

Where is the GPX file?

Hiking - Alltrails Alltrails is another good choice for day hikers to find quality GPX files. The website has a clean interface, and lots of functionality even on the free version.


2 Answers

In neither of those specs is a named element for accuracy. Both however allow for extended data which where you can put whatever you want.

In GPX it's called 'extensions' See http://www.topografix.com/GPX/1/1/#type_extensionsType
In Kml it's called 'ExtendedData' See http://code.google.com/intl/nl-NL/apis/kml/documentation/kmlreference.html#placemark

like image 197
Eddy Avatar answered Oct 04 '22 15:10

Eddy


As Eddy noted, there are no tags for accuracy.

But, GPX have something similar -- tags for dilution of precision (hdop, vdop, pdop) for every track point, waypoint or route point. Those are not exactly the same as "accuracy", but it can be used as such. See wikipedia for more.

like image 33
puzz Avatar answered Oct 04 '22 13:10

puzz