PhpRiot
Download This Article
Download this article in PDF format with all listings and files.

Price: $5.00 AUD
(Approx. $4.45 USD)

More information
Related Articles
Related Books
Beginning Google Maps Applications with PHP and Ajax: From Novice to Professional

Beginning Google Maps Applications with PHP and Ajax: From Novice to Professional

There is much to like about this book. The explanations are straightforward, the code is...
Browse Articles
Ajax (4), APC (1), CAPTCHA (1), CSS (3), Debugging (1), File Upload (1), Google (3), Google Maps (2), JavaScript (10), JSON (2), MVC (1), MySQL (6), onbeforeunload (1), OOP (1), PHP (27), PhpDoc (1), PostgreSQL (6), Prototype (9), Reflection (1), RFC 1867 (1), Robots (1), Scriptaculous (1), SEO (1), Sessions (1), SimpleXML (1), Smarty (5), SOAP (1), SPL (1), Templates (2), W3C (1), XHTML (1), Zend Framework (1), Zend_Search_Lucene (1)

PhpRiot Newsletter
Your Email Address:

Comments

Article Comments (2 total)

nev, 19 February 2008

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