I have a bunch of longitude and latitude values sent to google maps V2 api but i cant seem to get the requests to match.
So my code is set up where
Onclick I have it read the longitude and latitude from textfile and send it to there geocoding server. I have that in a for loop which goes through each point it looks like this.
Where address2 is the text file in a split() array and then is sent to request geocoded values. When i get the response it doesnt seem to write it directly after in the text file. It ends up writing everything in the for loop first and then all the received requests.Code:function forLOOP(loc){ for (i=loc; i<=10000; i++){ count = i; address2= "(" + address1[i] + "," + address1[i+1] + ")"; makefile(address2,"C:\\test1.txt"); geocoder.getLocations(address2, showAddress); doDelayLoop(count); i++ } } showAddress(){ makefile(place.address,"C:\\test1.txt"); }


Reply With Quote
Bookmarks