You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

import_gpx()

Usage

add(gpxString)

Description
Imports a GPX string and returns a complex object with its contents.

Example

${ import_gpx( get_content( first(find('File', 'name', '20090815.gpx')) ) ) }

would return something like the following. (Note: Indentation added for documentation purposes)

{
  tracks = [
    {
      segments = [
        {
          points = [
            {latitude=50.121096, longitude=8.641047, time=2009-08-15T08:37:23Z, altitude=168.3, horizontalDilution=3.2, verticalDilution=1.0, positionDilution=3.3},
            {latitude=50.12099, longitude=8.639938, time=2009-08-15T08:37:37Z, altitude=168.3, horizontalDilution=3.2, verticalDilution=1.0, positionDilution=3.3}
          ]
        }
      ]
    }
  ]
}

Search results for "import_gpx()"

import_gpx()

Imports a GPX string and returns a complex object with its contents.

add(gpxString)