Code:
googleplaces facilityname city state, results(3) textsearch apikey(__apikey_) Searching google for 1 of 2000 requested searches Searching google for 2 of 2000 requested searches Searching google for 3 of 2000 requested searches Return code was not OK Searching google for 4 of 2000 requested searches Searching google for 5 of 2000 requested searches observation numbers out of range r(198);
Code:
set trace on // // -------------------------------------------------------------------------------------- end insheetjson --- - replace g_lat = g_lat[`status'] in `i' = replace g_lat = g_lat[2001] in 5 - replace g_lng = g_lng[`status'] in `i' = replace g_lng = g_lng[2001] in 5 - local finaln = _N - replace g_queryID = "`i'" in `status'/`finaln' = replace g_queryID = "5" in 2001/2000 observation numbers out of range
Code:
*Here is the main search method, and modifications to what information is pulled need to happen within the forval command forval i = `in' { local srch = `csearch'[`i'] local offset = _N local status = `offset'+1 // // * Create some needed variables to fill in the g_queryID variable and to do the instant debug notifier local finaln = _N * Fill in the queryID number for all results pulled by the search replace g_queryID = "`i'" in `status'/`finaln' // //
Here's others commenting on the same bug in the past: https://www.statalist.org/forums/for...api-s-in-stata
0 Response to Error code in Google Places API--Observation numbers out of range
Post a Comment