Extension:GoogleGeocode

The GoogleGeocode extension is a MediaWiki wrapper around the GoogleMapsGeocoder PHP wrapper around the Google Maps Geocoding API. It is capable of looking up a given address, and obtaining information about it, such as its geocoordinates.

Configuration parameters

 * $wgGoogleGeocodeAPIKey: API key. You should probably obtain one from Google.
 * $wgGoogleGeocodeExpiry: Time (in seconds) to cache the data received from Google. Adjust to keep within the API's usage limits. Defaults to:  (10 minutes).
 * $wgGoogleGeocodeDelimiter: Delimiter to use between elements of returned arrays. Defaults to:.

Usage
The  parser function takes three parameters, in the form of  :
 * Search term: The search term to send to the API. This would usually be an address or establishment name.
 * Component: Component to request from Google. Good candidates for this would be,  ,  ,  ,  ...  See the documentation for more examples.
 * Path: (optional, advanced) Can be set to the desired type of component result to obtain. Can be set to,   or  . Defaults to:.

If either of the first two parameters are omitted, the extension will use the value previously entered on that page.

Examples

 * --> 37.4224504
 * --> -122.0840859
 * --> Mountain View
 * --> Mountain View
 * --> US
 * --> United States