Keep a history of geographical locations for your travel blog.
Author: | Yoran Brondsema (profile at wordpress.org) |
WordPress version required: | 3.5 |
WordPress version tested: | 3.5 |
Plugin version: | 1.0 |
Added to WordPress repository: | 19-12-2012 |
Last updated: | 19-12-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://URI_Of_Page_Describing_Plugin_and_Upda... |
Total downloads: | 894 |
Click to start download |
This plugin allows the administrator to keep track of a history of geographical locations. It was developed for a travel blog and the geographical locations were drawn onto a Google Maps widget so that visitors could keep track of the blogger's traveling.
A live example can be seen on the author's travel blog (in Dutch).
Its main features are * Add, edit and remove locations easily from the Admin panel * Enter geographical coordinates manually or parse from a Google Maps URL * Assign a date to each location for a true history of locations * Assign a label to each location for easy identification * Exposes a simple API to the front-end * Dynamically request locations with AJAX
The plugin is administrated from the admin (addition and removal of geolocations) and it exposes an API to the front-end. Once the plugin is installed, a theme can call the following functions:
* lochis_get_location_history()
: returns an array containing the whole history of geolocations, sorted by ascending date.
* lochis_get_latest_location()
: returns only the most recent geolocation.
Each of these functions also has an AJAX-equivalent that returns a JSON-object instead of a PHP object. This way you can use the geolocations in Javascript, for instance to be shown in a Google Maps widget. The AJAX functions are:
* lochis_ajax_get_location_history()
* lochis_ajax_get_latest_location()