We are using Google Maps geocode service to get Latitude and Longitude for a given address,
We invoke google maps geocode service in a loop for each address(the loop max size is 50 addresses).
we are using this MAPs for State of Texas HHSC Help website (https://www.211texas.org/211/)
Below is service URL that we are using to get Latitude and Longitude.
http://maps.google.com/maps/geo?q=1601%20Rutherford%20Ln,Austin%20TX%2078754&key=ABQIAAAAU6mRnxlKP7D0V5v9DF3PIRT7KmOOtdkA0SYMLaxMRemphasized textpf2Wu2TCRTCqatXcIx0ULuVNHCz_jELYoAgXw&output=csv&oe=utf8&sensor=false
Google thinks this is Unusual traffic from our computer network, but it is not.
If you copy and paste the above link on your browser URL, you will see the below message.
The service is not working and it says
We're sorry...
... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.
See Google Help for more information.
Need help ,
Sorry,If this is not right place to post this issue,
How to contact google on this issue, since its not commercial website issue.
or is there any alternative way to get Latitude and Longitude for given address.
Any insight would be appreciated.
Use the documented endpoint.
The documentation specifies:
http://maps.googleapis.com/maps/api/geocode/output?parameters
Related
Currently I use Google Maps GeoCoding API to get location latitude and longitude from given address. However, the maps doesn't rendered correctly.
I check on the browser console and got following error "API keys with referer restrictions cannot be used with this API"
After check on google search, one of the recommendation is to change the API Key restriction to IP Address restriction.
But since the Geocoding API call is called from the browser, I assume the IP addresses I should registered in Google Console Platform is visitor IP Addresses. Is that correct ? Is anyone experience to set the IP Address restriction successfully ?
Thank you.
You can use Geocoding Service (as mentioned by #geocodezip) when you are trying to geocode an address in the client-side. The behavior, parameters and results of this two APIs are the same.
Sample address: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA
Geocoding Service sample demo: Please check this link
geocoder.geocode({'address': address}, function(results, status) {})
Geocoding API sample request: https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=YOUR_API_KEY
Compare the results! :)
Please note that for web service requests, you'll have to make sure that the address string you are trying to send is properly URL-encoded
Happy coding!
I have a list of around 500 foundations and companies and i need to fetch more data like address, description, lat long, email or phone number, from the google and FB APIs I have found something more or less like this, but it won't work in OpenRefine, i need some help please.
I think it is possible to do beacause there is an addon called spotlight for spreadsheets that is able to fetch Google URLs and Lat Long https://www.youtube.com/watch?v=Vj1v3QfyrgA&feature=youtu.be
https://maps.googleapis.com/maps/api/place/findplacefromtext/output?parameters/json?input=value&inputtype=textquery&fields=photos,formatted_address,name,rating,email,geometry&key=YOURKEY
I have created the FB and Google places and google staic map API already. I have tried different queries, but it won't work unless it is in GREL
value.parseJson().geonames[0].lng
value.parseJson().geonames[0].geonameId
value.parseJson().geonames[0].lat
From the error "This API project is not authorized to use this API" the first thing to check is that you have enabled the Places and/or Geocoding API in the Google Developer console, and you have setup an API Key and that it is showing as a credential for the Places API and/or the Geocoding API
Next step, take OpenRefine out of the equation and check you can get a simple API call working in your browser - using one of the Google Places API examples:
https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=Museum%20of%20Contemporary%20Art%20Australia&inputtype=textquery&fields=photos,formatted_address,name,rating,opening_hours,geometry&key=<INSERT YOUR API KEY HERE>
If that gives you the same error, you know the issue is not with OpenRefine.
If you are still having problems in OpenRefine make sure you are creating URLs in OpenRefine that are valid for the appropriate Google API based on the documentation for that API and that you are using the correct API key.
I'm having issues with Google Measurement Api. I need to manually report ecommerce transactions to the analytics, and the only data i'm getting from the payment processor is Country Code (which is not precise enough for our analytics process) and IP address of person doing the purchase.
We've tried sending uip (User IP override) param but analytics ignores IP and does not extract the Geolocation from it.
We've tried using geoid, but as i said is not precise. We need city information too. I see that geoid can take integer as param which describes the precise location, but i don't know how to get to that number if only thing i have is IP address.
Any help or advice will be appreciated.
Which hit type do you use?
You must fulfill all mandatory fields of GA measurement protocol so the request could be accepted by GA.
https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters
What I mean by this is, since your browser doesn't cache the Google Earth Javascript API locally, all calls you make to the API have to go to Google's server. So if you create a placemark at some Lat & Long in the API, those coordinates get sent to Google. I am just wondering if my understanding of this is correct.
No, the API is loaded locally into the browser. That information is not sent to Google.
I've been trying to send data to Google Analytics through url, but it's not working.
Here is the url:
http://www.google-analytics.com/__utm.gif?utmac=MY-UA
&utmn=0.57942900+13058623924dd5e0f88d784
&utmp=%2Fmypage.html
&utmr=http%3A%2F%2Fpp.test%2Fmypage-ref.html
&utmdt=test+ga&utmul=en-us
&utmhn=pp.test
&utmcc=__utmz%3D1.1304060743.1.1.utmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29%3B+__utma%3D1.100229728.1304060743.1304060743.1304060743.1%3B+__utmz%3D185677488.1304391672.1.1.utmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29%3B+__utma%3D185677488.2126025763.1304391672.1304667350.1305106191.6%3B+PHPSESSID%3Dpghin7v4q3g5lssq5c5mjchfj6
&utmcn=1
&utmcr=1
&utmwv=1
&utmsr=1280x1024
&utmsc=32-bit
&utmcs=-
&utmje=0
I have been trying follow the parameter here http://code.google.com/apis/analytics/docs/concepts/gaConceptsOverview.html
I call the url by curl and tested through the address bar, but not working, no data in my Google Analytics :(
Any ideas please?
It's possible, although if you're trying to do it you're probably doing something wrong.
But there's more to it than you can see at first sight. The best way to achieve it is to use a mobile library for Google Analytics. Google already provides this for a couple of languages. These libraries are built to send data to Google Analytics via your server. And if you check the server code you'll see that there are some calculations involved. You can possibly change one of these libraries to be run without a request. They're not complicated.
http://code.google.com/mobile/analytics/docs/web/