Jump to content

Recommended Posts

I am using cUrl to access the Google Maps geocoding service. It sends a http request and returns the data.

 

As I am on a cloud platform, when I use cUrl the IP that is used is one shared ny thousands. I believe it is possible that the IP has been blocked.

 

So I can have control in future and manage my own usage (rather than trust other users with that IP), I need to look at an alternative.

 

I save latitude and longtitude data - ready for displaying on a map when needed (which IS allowed under Googles terms & conditions) - and I do this just before database insert when adding a record.

I believe you can get an API key and use Googles API, they shouldn't ban you from that as long as you are passing a valid API key to them using that functionality.

 

http://code.google.com/apis/maps/documentation/

I am talking about this:

http://code.google.com/apis/maps/documentation/geocoding/index.html

 

...and as it is done by http, Google will limit requests by IP, not the API key.

 

Other methods are done by a javasript call - i.e. you specify an address and the Google js code converts it (I imagine doing an Ajax call) to the lat / long values.

 

As I am not using this to plot values on a map yet, just creating a new database record (all server-side code of course) and am just storing the lat/long values in the db, I can't really use the js methods. This is definitely ok as per Google t&c's, as long as I am storing values for use to plot on a Google map later.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.