PHP Classes

Geocoder: Get coordinates of locations with geocode services

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (7 years ago) RSS 2.0 feedStarStar 36%Total: 2,038 All time: 1,838 This week: 1,060Up
Version License PHP version Categories  
geocoder 1.0GNU Lesser Genera...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: 52
All time rank: 10386 in Belgium Belgium
Week rank: 1501 Down13 in Belgium Belgium Down
Innovation award
Innovation award
Nominee: 1x

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

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