Where to place API key for Google Geocoding API? -


we use google geocoding api map address latitude , longitude.

here sample url encoding (which returns json) -

http://maps.googleapis.com/maps/api/geocode/json?address=dallas&sensor=false

message: over_query_limit

ok, makes sense, because exceed on 2500 daily limit place api key -

http://maps.googleapis.com/maps/api/geocode/json?key=xxxxx&address=dallas&sensor=false

message: request_denied

i'm wondering where/how place api key.

looks in version 3 need pass clientid in url , not key in free version: https://developers.google.com/maps/articles/v2tov3#newkey

so url should like: http://maps.googleapis.com/maps/api/geocode/json?client=xxxxx&address=dallas&sensor=false

not lucky enough have paid account cannot test - think on correct path.

relevant link: https://developers.google.com/maps/documentation/business/webservices/

client id

you must include client id in api requests. client id identifies maps api business customer , enables support , purchased quota application. requests made without client id not eligible maps api business benefits.

if you're switching free api services maps api business implementation, must remove key parameter requests. google maps api web services deny requests made both client id , key.

more information available in authentication , authorization chapter of guide.

if have lost client id, can recover logging in support portal , clicking maps: add urls links on left of page.

edit

for more information, including instructions on passing client id earth api, v2 api, , maps api flash, please read loading client-side apis.

if have lost client id or cryptographic key, can recover them logging in support portal , clicking maps: add urls links on left of page.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -