-ReadGPX: enter the full path of your GPX file (e.g. /storage/emulated/0/yourfile.gpx)
-GPXRead: returns a list of lat/lng pairs.
-CreateGPX: fileName ( e.g. /storage/emulated/0/yourTrack.gpx)
name: Name of your track
points: enter the list of your lat/lng coordinates
-GPXCreated: returns: path to the written GPX file. result: as String. size: amount of coordinates. GPXDemo.aia (69,2 KB) com.django.DjGPXTools.aix (13,2 KB)
** Update version 2 01-01-2021 ***
Now you can read and write kml files too. Use the same procedure as with gpx files.
Updated extension and aia file
Great tool!
I was waiting for such functionality for my app!.
Thanks so much!.
If you want to improve it may be you can make a small update to add the elevation data should it exists in the GPX file.
Instead of returning a list of points (lat, long) you could return a list of points+elevation (lat,long,elev)
May be you can add a flag to decide wether you need elev or not or a return flag indicating wether or not elevation data was returned.