Extension:UK geocoding for Maps

From MediaWiki.org
Jump to: navigation, search
Crystal Clear app error.png

This extension is probably not compatible!
This extension does not work with the recent releases of the Maps and Semantic Maps extensions. Please contact the author for more information.

MediaWiki extensions manual - list
Crystal Clear action run.png
UK geocoding for Maps

Release status: experimental

Implementation Parser functions
Description Extends Maps with a display_uk_point parser function with Google Maps implementation
Author(s) Jeroen De Dauw
Last version 0.2
MediaWiki 1.15.* and 1.16.*
License GPL
Download Download snapshot
Subversion [Help]

Browse source code
View code changes

Hooks used
LanguageGetMagic

Check usage (experimental)

The goal of this extension is to provide a way to display UK postcodes on Google Maps maps, by extending the Maps extension. Since obtaining geocoded postcodes for UK Postcodes via Google services is only possible using the Google AJAX search API, the standard geocoding infrastructure of Maps could not be used, and this extension should be seen as a sort of hack. Initial development for this extension was funded by Neill Mitchell for Prescient Software Ltd.

Version 0.1 is an experimental release, in which multiple issues are expected. I'm hoping to polish the whole extension a little more once I have some free time. Bug reports are welcome though.

[edit] Download and installation

You can get version 0.1 from SVN at

http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/UKGeocodingForMaps/

Once you have downloaded the code, place the 'UKGeocodingForMaps' directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

# UK Geocoding For Maps
require_once( "$IP/extensions/UKGeocodingForMaps/UKGeocodingForMaps.php" );

The inclusion line needs to be placed AFTER the inclusion of Maps. Then get a Google AJAX search API key if you don't already have one (here), and place it in your LocalSettings file after the inclusion of this extension.

# Your Google AJAX search API key. Required for displaying Google Maps with the display_uk_point(s) parser function.
$egGoogleAjaxSearchKey = 'your key here'; # http://code.google.com/apis/ajaxsearch/signup.html
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox