Enyo with Google map bussiness API

Hi,

I have the Google map bussiness api clientId and key. i want to get latlng from address, So that how can i generate private key in enyo.

Lets suppose clientId = gme-sample and key="ABAAAAA_something_like_this_iwhGg" and map url is "http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true"

can you please post the code for this.. thanks in advance

Comments

  • You'll most likely want to do this through a proxy server because you'd be otherwise storing your signing key in plaintext and in full view of any snooping eyes, thus opening yourself up to someone else taking your key and clientId and making requests through your account and costing you money.

    Onto the question of how to sign your request, you'll want to take a look at Google's documentation and see about converting it to JavaScript if you do, in fact, wish to do the requests client-side. They have a number of small libraries available which show how to sign a request, so if you're familiar with almost any modern server-side web languages you can check this out to write a JavaScript library for it: http://gmaps-samples.googlecode.com/svn/trunk/urlsigning/index.html
Sign In or Register to comment.