Geo Mark WordPress Plugin

Geo Mark WordPress Plugin

Geo Mark is a WordPress Plugin which will automatically locate Geo information in your WordPress posts using Yahoo Placemaker and YQL API’s.

Once the Geo location is located, it will add this information as custom fields to the post. The information stored in the custom field can be displayed anywhere in the post using the build in get_post_meta() function. The Plugin also exposes template functions which can be used to generate GEO Microformats based on the location information found in the post.

The Geo Mark Plugin also lets you to expose the location based information in RSS feeds. The Geo information stored in the custom field can be used to create Geo tags in the RSS feed. The Plugin supports the following Geo RSS formats.

  • Simple (georss:point)
  • GML (gml:pos)
  • W3C (geo:lat)

Download

You can download the Plugin as a zip file from the official WordPress Plugin repository.

Installation

Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.

Screenshot

geo-mark-wordpress-plugin

Usage

Template Function

The geo information stored in the custom fields can be exposed as GEO Microformats by calling the following template function, anywhere within the Loop.

get_geo_info(get_the_ID());

Enabling Geo RSS

To enable Geo RSS, go to settings –> Geo Mark and check the “Enable GeoRSS tags in feed” option. You can also choose which format of Geo RSS that you want to support.

Translation

The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.

Feedback

If you have any comments or if you want to report any bugs, please leave a comment below or contact me.

Stay updated

I would be posting updates about this Plugin in my blog and in Twitter. If you want to be informed when new version of this Plugin is released, then you can either subscribe to this blog’s RSS feed or follow me in Twitter.

Credits

Thanks to Chris for the Geo This Greasemonkey script and to Yahoo Placemarker and YQL for powerful yet easy to use API’s

Changelog

  • 2009-07-07 – v0.1 – Initial Release
  • 2009-07-21 – v0.2 – Fixed issue in handling empty arrays
  • 2009-07-22 – v0.3 – Added support for translation.
  • 2009-08-15 – v0.4 – Fixed a small typo.
  • 2009-08-18 – v0.5 – Removed hard coded Plugin path and some bug fixes.
  • 2010-01-02 – v0.6 – Added Belorussian translation.

Share thy love

4 Comments so far

Trackback URI | Follow up comments through RSS Feed | Post a comment

  • Anonymous says:

    Great article, adding it to my bookmarks!

  • sunshine says:

    Awesome job !!! keep it up.

  • Peter says:

    hi Sudar,

    In my sidebar, I want to automatically log where I made the last post . Is this achievable with your plugin?

    An example of how to use it for the millions who use wordpress but not PHP would be great.

    thanks,
    Peter

    • Sudar says:

      @Peter,

      Right now it not possible out of the box. But this seems to be a valid usecase. I will add it to my todo list and will implement this feature when I get some free time.

17 Trackbacks/Pingbacks so far

Leave a Comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">