From 3007916bea51530b2b604f6ceffbbea81e4a01e9 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 4 Dec 2019 17:54:26 +0800 Subject: update --- scripts/match-road.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/match-road.sh b/scripts/match-road.sh index 68d7c8a..b3f48d2 100755 --- a/scripts/match-road.sh +++ b/scripts/match-road.sh @@ -38,6 +38,7 @@ while [ -s $ORIGIN_DATA ]; do jq --slurp '{type: "Feature", properties: {coordTimes: .[1]}, geometry: {type: "LineString", coordinates: .[0]}}' \ <(head -$LIMIT $ORIGIN_DATA | cut -d' ' -f2 | jq -n '[inputs]') \ <(head -$LIMIT $ORIGIN_DATA | cut -d' ' -f1 | jq -nR '[inputs]') |\ + tee tmp_$(head -1 $ORIGIN_DATA | cut -d ' ' -f1 | date -f - +%s).geojson |\ # Mapbox Map Matching API, store response into tmp file curl -X POST -s --data @- --header "Content-Type:application/json" https://api.mapbox.com/matching/v4/mapbox.driving.json?access_token=$ACCESS_TOKEN > $RESPONSE -- cgit v1.2.3-70-g09d2