Extension:GooglePlaces

The GooglePlaces extension uses parser functions to pull data from the Google Places API into wiki pages.

Configuration parameters

 * $wgGooglePlacesAPIKey: Your API key from Google
 * $wgGooglePlacesExpiry: How long to cache the API lookups. Defaults to 10 minutes.

The parser function
The  parser function allows you to look up a place's details based on that place's Google Place ID. It takes two unnamed parameters.
 * 1) The first parameter is the Place ID. You can look that up using this page.
 * 2) The second parameter is the path through the API's response that contains the information you need, with each level separated by a  . This page contains information about the fields that the API sends.

Examples

 * → Wikimedia Foundation Inc.
 * → SF
 * → CA
 * → 149 New Montgomery Street, San Francisco, CA 94105, United States
 * → (415) 839-6885
 * → 37.786997, -122.399695
 * → 4.4
 * → http://wikimediafoundation.org/
 * → 149 New Montgomery Street, San Francisco , CA 94105 , United States