PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store
Related Articles

Geocoding with PHP and the Google Maps API

Article Comments (13 total)

Displaying article comments 11 to 13 of 13
Chad, 11 March 2008
Can you explain what is the difference between the geocoding from Google Maps online and its API please? Thanks.

nev, 21 April 2224

Is there a way I can pull the latitude/longitude data into the browser using PHP 4 (4.4.7)?

Response from PhpRiot:

Yes, the Geocoder web service is compatible with PHP 4 (since it's provided as a web service), however the code created in this article takes advantage of a number of PHP 5 features.

You would essentially need to rewrite the classes so they don't use code constructs such as exceptions or using __construct().


Matthew Purdon, 17 February 2008

One important thing to note is that the 15k limit is based on IP address, not your Google API key. If you can push the geocoding off onto your client browser, you will never need to worry about this limit.

Response from PhpRiot:

While this is true for the JavaScript geocoder, this does not apply to the server-side geocoder as covered in this article. Since the request is performed by the server, Google has no knowledge of the IP address of the client that initiated the request.

Submit a Comment
Use the following form to submit a comment for this article. You can include any required code snippets, which we will format and highlight accordingly.


Note: Before your comment appears on PhpRiot, it must be manually approved. The email address field is optional. If you choose to include it, it will be displayed obfuscated to protect it from spammers.

In This Article


Additional Files