khuppenbauer / netlify-gpsbabel-functions

Use GPSBabel as netlify function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

netlify-gpsbabel-functions

Use GPSBabel as netlify function

GPSBabel

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

About

Use GPSBabel as netlify function

License:MIT License


Languages

Language:JavaScript 100.0%