Jump to content

cUrl alternative - so can use Google Maps Geocoding


johnsmith153

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 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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.