PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2008-04-21 (8 years ago) RSS 2.0 feedStarStarStar 43%Total: 2,052 This week: 1All time: 1,856 This week: 1,047Up
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
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,052
This week:1
All time:1,856
This week:1,047Up
User Ratings User Comments (2)
 All time
Utility:65%StarStarStarStar
Consistency:60%StarStarStarStar
Documentation:-
Examples:-
Tests:50%StarStarStar
Videos:-
Overall:43%StarStarStar
Rank:2530
 
This package requires "simpletest" and "http" packages, the p...
5 years ago (Roberto A Junior)
35%StarStar
doesn't work
7 years ago (shrestha roshan)
17%Star