Geocoder: Get coordinates of locations with geocode services

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 43%Total: 2,069 All time: 1,890 This week: 205Up
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: 58
All time rank: 10956 in Belgium Belgium
Week rank: 981 Up6 in Belgium Belgium Equal
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  
This week:0
All time:1,890
This week:205Up
User Ratings User Comments (2)
 All time
This package requires "simpletest" and "http" packages, the p...
10 years ago (Roberto A Junior)
doesn't work
12 years ago (shrestha roshan)
For more information send a message to info at phpclasses dot org.