Login   Register  
PHP Classes

Geocoder: Get coordinates of locations with geocode services

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Bruyndonckx
Name: Bruyndonckx <e-mail contact>
Packages: 2 Browse all classes by Bruyndonckx Browse all classes by
Country: Belgium Belgium - PHP jobs in Belgium
Age: 51
All time rank: 10106 in Belgium Belgium
Week rank: 1316 Down10 in Belgium Belgium Down
Innovation award
Innovation award
Nominee: 1x

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package can be used to get the geographic coordinates of locations using geocoding Web services.

There is a base class that provides a common API to access Web services that can analyze and determine the definition of a world location and return the associated latitude and longitude.

There is one function that takes as parameters the country name, location zip code and optionally the city and state. That function returns an array with the latitude, longitude of the location or an error message.

Currently, there are implementation classes that can access geocoding Web services of Yahoo, Google and Worldkit.

  Classes of Bruyndonckx  >  Geocoder  >  Download Download .zip .tar.gz  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Geocoder
Base name: geocoder
Description: Get coordinates of locations with geocode services
Version: 1.0
PHP version: 5.0
License: GNU Lesser General Public License (LGPL)
All time users: 1988 users
All time rank: 1826
Week users: 1 user
Week rank: 1813 Up
  Groups   Rate classes User ratings   Applications   Related links   Files Files  

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes
Group folder image Geography Locations, mapping and demographics View top rated classes

  Innovation Award  
PHP Programming Innovation award nominee
April 2008
Number 3
Geocoder services are very useful as they allow determining the geographic location of an address on a map.

There are several geocoding services available for free on the Web but some do not cover all regions of the world.

This package provides a unified solution to query multiple geocoding services. This way, when an application uses a geocoding service that does not cover well a given region, the application may still easily use another geocoding services that cover that region better.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Not sure (56.2%) Not sure (50.0%) - - Insufficient (37.5%) - Insufficient (36.9%) 2187
Month: Not yet rated by the users

  Applications that use this class  
Link Description
Banzora Personalized tour information
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
HTTP Pear package needed
HTTP Header Pear package needed
HTTP Request Pear package needed
Net Socket Pear package needed
Net URL Pear package needed
SimpleTest Unit Test Framework

  Files folder image Files  
File Role Description
Accessible without login Plain text file Countries.inc Aux. Country Names
Plain text file Geocoder.inc Class Abstract Geocoder superclass
Accessible without login Plain text file GeocoderTests.php Test Unit Tests
Plain text file GoogleGeocoder.inc Class Google Geocoder
Accessible without login Plain text file MathUtils.inc Aux. Math Utilities
Accessible without login Plain text file StringUtils.inc Aux. String Utils
Plain text file USGeocoder.inc Class Yahoo Geocoder
Plain text file WorldGeocoder.inc Class Worldkit Geocoder

Install with Composer Install with Composer - Download Download all files: geocoder.tar.gz geocoder.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.