Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 684 Bytes

output.md

File metadata and controls

29 lines (24 loc) · 684 Bytes

GPS File Converter

Output methods

You can output geo data in two ways: To file or to string.

  • exportGPX, exportKML, exportGeoJSON: exports geo data to a file on disk
  • stringify: outputs a string of the content of the corresponding format

Examples

gfc.exportKML(filePath, options)
.then(async() => {
    console.log('Saved to disk')
})
.catch(e => {console.log(e)})
gfc.stringify(type, options)
.then(async(c) => {
    const content = c
})
.catch(e => {console.log(e)})

Parameters

  • filePath: path with filename of the exported geo data
  • options: ( Optional ) Read more here
  • type: can be 'gpx', 'kml' or 'json'