Skip to content

khuppenbauer/netlify-gpsbabel-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netlify-gpsbabel-functions

Use GPSBabel as netlify function

Simple wrapper to use some GPSBabel Functionality as API

Currently the following is supported:

Pass the url to the file as GET parameter or the Content as Body in an POST Request

Examples:

Method: GET

/.netlify/functions/gpsbabel?infile=https://developers.google.com/kml/documentation/KML_Samples.kml&outtype=geojson&distance=8m&points=500

Query:

  • infile - absolute URL to the input file
  • outtype - format to be converted into
  • distance - optional - (use the position filter if set)
  • count - optional - (use the simplify filter with count option if set)
  • error- optional - (use the simplify filter with error option if set)

Method: POST

/.netlify/functions/gpsbabel?intype=gpx&outtype=geojson

Query:

  • body - File Content
  • intype - input format
  • outtype - format to be converted into
  • count - optional - (use the simplify filter with count option if set)
  • error- optional - (use the simplify filter with error option if set)

Deploy with Netlify

Find out more about Netlify Functions and try it out by deploying to your netlify account

Deploy to Netlify

After clicking that button, follow the provided steps. Afterwards you will find the functions under the functions item in your netlify project

Releases

No releases published

Packages

No packages published