PHP Classes

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 42%Total: 2,072 This week: 1All time: 1,893 This week: 560Up
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: 61
All time rank: 11056 in Belgium Belgium
Week rank: 411 Up3 in Belgium Belgium Up
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,072
This week:1
All time:1,893
This week:560Up
User Ratings User Comments (2)
 All time
Utility:62%StarStarStarStar
Consistency:58%StarStarStar
Documentation:-
Examples:-
Tests:50%StarStarStar
Videos:-
Overall:42%StarStarStar
Rank:3609
 
This package requires "simpletest" and "http" packages, the p...
12 years ago (Roberto A Junior)
35%StarStar
doesn't work
15 years ago (shrestha roshan)
17%Star