I have many trajectories data. 500k. I try to get adresses of these coordinates. I use bash command in linux.
#!/bin/bash filename="$1" while read -r line do uid=$(echo $line | cut -f1 -d,) lat=$(echo $line | cut -f2 -d,) long=$(echo $line | cut -f3 -d,) timestamp=$(echo $line | cut -f4 -d,) printf "$uid,$lat,$long,$timestamp|" wget -O- -q "http://maps.google.com/maps/api/geocode/xml?latlng=$lat,$long&sensor=false"|\ grep formatted_address|\ head -n1|\ cut -d\> -f2|\ cut -d\< -f1 done < "$filename"
I can only get 2500 addresses. After 2500 coordinates, This command "wget" is not work. When I reset modem, I can get 2500 more addresses. Is there any way to get address from coordinates? Or is it possible to reset IP in bash command after getting 2500 address ? thanks.
My input file include 500k data like this
My output file will be like this
11395,39.9050283,32.6977617,2008-11-03T16:58:05Z|11395,39.9051033,32.6984550,2008-11-03T16:58:06Z|Erler, Eskişehir Yolu No:120, 06790 Etimesgut/Ankara, Turkey