This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 8, | |
"name": "Hiking Slovakia", | |
"metadata": { | |
"mapbox:groups": { | |
"1444934828655.3389": { | |
"name": "Aeroways", | |
"collapsed": true | |
}, | |
"1444933322393.2852": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download list | |
curl -u '*Martin*:****' http://api.openstreetmap.org/api/0.6/user/gpx_files > list.xml | |
# download the traces not containing " by " in the description | |
for id in `xmlstarlet sel -t -m "//gpx_file/description[not(contains(., ' by '))]/.." -v @id -nl list.xml`; do echo $id; curl -u '*Martin*:****' http://api.openstreetmap.org/api/0.6/gpx/$id/data > $id.gpx; done | |
# merge traces | |
gpsbabel -i gpx $(for GPX in *.gpx; do echo -n " -f $GPX "; done) -o gpx -F merged.gpx | |
# simplify merged trace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8' /> | |
<title></title> | |
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.12.2/mapbox-gl.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.12.2/mapbox-gl.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <TinyGPS++.h> | |
#include <AltSoftSerial.h> | |
AltSoftSerial altSerial; | |
TinyGPSPlus gps; | |
char line[256] = ""; | |
int p = 0; |
NewerOlder