Use GPSBabel as netlify function
Simple wrapper to use some GPSBabel Functionality as API
Currently the following is supported:
- Convert between gpx, kml, (geo)json, tcx Formats
- Simplify Filter
- Position Filter
Pass the url to the file as GET parameter or the Content as Body in an POST Request
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 fileouttype
- format to be converted intodistance
- 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 Contentintype
- input formatouttype
- format to be converted intocount
- optional - (use the simplify filter with count option if set)error
- optional - (use the simplify filter with error option if set)
Find out more about Netlify Functions and try it out by deploying to your netlify account
After clicking that button, follow the provided steps. Afterwards you will find the functions under the functions item in your netlify project