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.
To install the plugin, follow the next steps.
- Upload the directory ‘geolocation-history’ to the ‘/wp-content/plugins’ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Administrate the plugin from the backend and use the API functions in your theme
How do I use Google Maps URLs to insert a location?
The plugin can parse geographical coordinates (latitude and longitude) from a Google Maps URL. To fetch the URL, go to the location in Google Maps and click on the “chain” next to the printing logo, on the left. There, copy the link and paste it in the appropriate input field in the plugin back-end. Click on the “Parse URL” button and the geographical coordinates appear magically in the appropriate input fields.
Contributors & Developers
“Geolocation History” is open source software. The following people have contributed to this plugin.
Interested in development?
- First release.