This plugin hasn’t 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.

Geolocator WordPress Plugin

Description

This plugin is really meant to be an aid to folks doing data entry, and trying to find locations with Google Maps.
It shows two forms: One on the left, and one on the right. The left form allows you to enter address information, or a longitude/latitude pair, and the right form shows the result of a geocode lookup or a reverse geocode.
It is possible to display an interactive map, and also to examine the raw JSON data sent back from the geocode/reverse geocode lookup.
This is an extension of a utility that was written in order to help data entry personnel enter accurate address information.
It has administration options (“Geolocator Options”, in “Settings”).
The plugin outputs highly optimized code that is XHTML 1.0 Strict compliant, as well as WAI AAA.

Usage

To use this utility, you simply enter address information into the fields in the left-hand form. You can enter all the information in one line, if you wish.
The string that is displayed above the entry is what is actually sent to Google Maps to be geocoded. Once you have filled in the address, click on “Address Lookup”. This will send a geocode request to Google Maps.
The response is parsed, and shown in the right-hand (gray) box. A set of arrow links will appear between the two forms. These allow you to easily transfer results into the entry form.
If you enter a longitude and latitude value into the bottom two boxes in the entry form, you can do a reverse geocode. This asks Google Maps to figure out an address, based on the values in these boxes.
In many cases, Google Maps will return more than one response, and you can cycle through these responses.
Each response shows an “accuracy” number in a scale, above the response. The more accurate (confident) the result, the closer the scale marker will be to the right.
In the interactive map, there are two markers shown. The yellow one reflects the long/lat pair in the left window, and can be moved around. Clicking in the map will move/create the marker, and fill in the long/lat fields.
The gray marker reflects the position of the current response, and cannot be moved.
The raw data window shows the entire response from Google Maps, presented in a hierarchical fashion. If there are more than one placemark, each mark will have a link that will bring that mark into focus in the gray form.

Screenshots

  • The simplest form of the plugin
  • The plugin with the two checkboxes enabled
  • A basic lookup (Note entire address in one line)
  • A reverse geocode from just the longitude and latitude
  • The interactive map (The yellow marker can be moved, and is linked to the Longitude and Latitude items in the left box)
  • The response data from Google (Address Lookup)
  • The response data from Google (Long/Lat Lookup)
  • The administration options

Installation

  1. Upload the geocoder-wordpress-plugin-google-maps-geolocator-workshop directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. You need to get a Google Maps API Key (http://code.google.com/apis/maps/signup.html) for the domain of your site.
  4. Go to the settings (in the Admin->Settings Menu), and add the Google Maps API key (you don’t need it if you are running as localhost, but almost no CMS is ever run that way).
  5. Place <!--GEOLOCATOR--> in the HTML view of a page or a post. It will be replaced by the plugin output.

Contributors & Developers

“Geolocator WordPress Plugin” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.2.3 -April 30, 2010
– Added scroll wheel zooming to the map.

1.2.2 -March 26, 2010
– The accuracy bar fix was not sufficient. It needed more.

1.2.1 -March 11, 2010
– Fixed a CSS bug in the accuracy bar.

1.2 -February 11, 2010
– Added a “Where Am I?” button for iPhones.

1.1.10 -February 8, 2010
– Simply made the whole class static, to make it a bit simpler and more robust.

1.1.9 -February 6, 2010
– Worked on optimizing and improving the appearance of the accuracy bar.

1.1.8 -February 5, 2010
– Fixed a positioning bug in the gradient.

1.1.7 -February 5, 2010
– Added accuracy bar indicator to search results.

1.1.6 -February 4, 2010
– Initial release.