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
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-04-21 (6 years ago) RSS 2.0 feedStarStar 36%Total: 2,017 This week: 1All time: 1,832 This week: 1,384Up
Version License PHP version Categories  
geocoder 1.0GNU Lesser General Publ...5.0PHP 5, Web services, Geography
Description Author  

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.

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
Picture of Bruyndonckx
Name: Bruyndonckx <contact>
Classes: 2 packages by
Country: Belgium Belgium
Age: 51
All time rank: 10216 in Belgium Belgium
Week rank: 1063 Down6 in Belgium Belgium Equal
Innovation award
Innovation award
Nominee: 1x

  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

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,017All time:1,832
 This week:1This week:1,384Up
User Ratings User Comments (2)  
 All time
This package requires "simpletest" and "http" packages, the p...
3 years ago (Roberto A Junior)
doesn't work
5 years ago (shrestha roshan)