From e8d03c43ddeabfbff4934a69722cf7f125b5c55e Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 4 Dec 2019 08:47:39 +0800 Subject: update --- scripts/match.sh | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'scripts') diff --git a/scripts/match.sh b/scripts/match.sh index e76ddec..a1c7e62 100755 --- a/scripts/match.sh +++ b/scripts/match.sh @@ -4,31 +4,33 @@ set -e ACCESS_TOKEN=$(cat ~/settings/tokens/mapbox) -#export MAPBOX_ACCESS_TOKEN=$ACCESS_TOKEN LIMIT=10 -TRK_NAME=$(sed -nr 's/.*(.*)<\/name>.*/\1/p; //q' $1) +ORIGIN_DATA=/tmp/origin +RESPONSE=/tmp/response -# Need to add pre-process for duplicated gpx trkpts +# store data of time and location into tmp file with 2 columns, format is like: +# 1970-01-01T08:00:46 [121.0179739,14.5515336] paste -d' ' \ <(sed -nr '//,/<\/trk>/ { s/.*