diff options
-rwxr-xr-x | scripts/match-road.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
38 | jq --slurp '{type: "Feature", properties: {coordTimes: .[1]}, geometry: {type: "LineString", coordinates: .[0]}}' \ | 38 | jq --slurp '{type: "Feature", properties: {coordTimes: .[1]}, geometry: {type: "LineString", coordinates: .[0]}}' \ |
39 | <(head -$LIMIT $ORIGIN_DATA | cut -d' ' -f2 | jq -n '[inputs]') \ | 39 | <(head -$LIMIT $ORIGIN_DATA | cut -d' ' -f2 | jq -n '[inputs]') \ |
40 | <(head -$LIMIT $ORIGIN_DATA | cut -d' ' -f1 | jq -nR '[inputs]') |\ | 40 | <(head -$LIMIT $ORIGIN_DATA | cut -d' ' -f1 | jq -nR '[inputs]') |\ |
41 | tee tmp_$(head -1 $ORIGIN_DATA | cut -d ' ' -f1 | date -f - +%s).geojson |\ | ||
41 | # Mapbox Map Matching API, store response into tmp file | 42 | # Mapbox Map Matching API, store response into tmp file |
42 | curl -X POST -s --data @- --header "Content-Type:application/json" https://api.mapbox.com/matching/v4/mapbox.driving.json?access_token=$ACCESS_TOKEN > $RESPONSE | 43 | curl -X POST -s --data @- --header "Content-Type:application/json" https://api.mapbox.com/matching/v4/mapbox.driving.json?access_token=$ACCESS_TOKEN > $RESPONSE |
43 | 44 | ||