Extension:Google Geocoder

Google Geocoder extension adds parser functions to convert addresses to geographic coordinates using Google's Geocoding service.

This extension was developed by Sergey Chernyshev and sponsored by Semantic Communities, LLC.

Usage
To convert address to a geographic coordinates:

Returns pair of coordinates separated by comma: 55.755786, 37.617633

To get just latitude or longitude, use  or   respecitively.

If result couldn't be found, empty value is returned (so it can be used with #if parser function, for example)

Legal WARNING
Google only allows usage of this extension in conjunction with displayable Google Map - please make sure you don't violate these rules: http://code.google.com/apis/maps/documentation/geocoding/#Geocoding

Download from SVN
To get code from Subversion, just type svn checkout http://mediawiki-google-geocoder.googlecode.com/svn/trunk/ GoogleGeocoder

Configuration
To use this extension, you must first sign up for Google Maps Developer Key.

Then add the following to LocalSettings.php:

Where  defines the key you got from Google. If you use other mapping extensions like Google Maps or Semantic Google Maps then you might have this variable already set, there is no need to repeat this declaration then, same value will be used by all extensions.

CHANGES

 * 0.2.1 (July 15, 2008) - Added space between comma and longitude to be compatible with Semantic MediaWiki Gographic coordinate format.
 * 0.2 (July 14, 2008) - Now using $wgGoogleMapsKey variable as other mapping extensions
 * 0.1 (July 13, 2008) - Original release

Sites using this extension

 * TechPresentations.org