johnsmith153 Posted November 19, 2009 Share Posted November 19, 2009 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. Link to comment https://forums.phpfreaks.com/topic/182214-curl-alternative-so-can-use-google-maps-geocoding/ Share on other sites More sharing options...
premiso Posted November 19, 2009 Share Posted November 19, 2009 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/ Link to comment https://forums.phpfreaks.com/topic/182214-curl-alternative-so-can-use-google-maps-geocoding/#findComment-961494 Share on other sites More sharing options...
roopurt18 Posted November 19, 2009 Share Posted November 19, 2009 I don't see what this has to do with cURL. Sounds to me like you either need a valid API key as suggested by premiso or set up a proxy of some sort. Link to comment https://forums.phpfreaks.com/topic/182214-curl-alternative-so-can-use-google-maps-geocoding/#findComment-961507 Share on other sites More sharing options...
johnsmith153 Posted November 20, 2009 Author Share Posted November 20, 2009 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. Link to comment https://forums.phpfreaks.com/topic/182214-curl-alternative-so-can-use-google-maps-geocoding/#findComment-961548 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.