Geo Location

1. What Is Geo Location?

Geo Location is a MovableType plug-in, to enable blog entries to contain geo-location information. It is based on Yuri Takhteyev's entry location plugin.

Geo Location is part of the Locative Blog project.

Locative Blog is being written by Ákos Maróy

2. Sample

See a sample of Rotating Globe in action at the authors travel blog.

3. Using Geo Location

3.1 Installing

To install Geo Location, install the following files, into your MovableType installation, like the following:
MovableType
|-- extlib
| `-- Tyrell
| `-- Location.pm
`-- plugins
`-- GeoLocation.pl

The above files can be found in the var directory of the Geo Location distribution tarball.

3.2 Location definitions

Geo Location uses location information stored in MovableType categories. First, define a category called locations. For each location you want to have in your blog, define a subcategory for the location category, with the details in the category description, with the following three lines:
  • location name
  • latitude
  • longitude
For example, the location description for Budapest, Hungary would be:

Budapest, Hungary
47.50
19.16

For a blog entry to be related to a location, put the entry into the specific location category.

3.3 MovableType location tags

To include location information for a blog entry, use the following tags in an individual blog entry template, or inside an <MTEntry> element, to get the location name:

<MTIfEntryLocation><MTEntryLocation/></MTIfEntryLocation>

On an individual blog entry page, include the following tag in the <head> element, to get location-related meta tags:

<MTLocationMetaTags/>

To iterate through all the locations in your blog, use the following tag:

<MTLocationList>
<MTLocation/>
</MTLocationList>

The MtLocation element can have the following forms:
  • <MTLocation/> - the location category name
  • <MTLocation description="true"/> - the location description
  • <MTLocation longitude="true"/> - the location longitude
  • <MTLocation latitude="true"/> - the location latitude
  • <MTLocation archiveurl="true"/> - the location category archive page URL

3.4 Integrating with Rotating Globe

Geo Location is capable to generate the data definition file (locations.js) used by Rotating Globe. To achieve this, use the following template to generate locations.js:

<MTLocationList>
locations.push(new GeoLocation(
"<MTLocation/>",
"<MTLocation description="true"/>",
<MTLocation longitude="true"/>,
<MTLocation latitude="true"/>,
"<MTLocation archiveurl="true"/>"));

</MTLocationList>

4. Discussion

For questions & feedback on Locative Blog, please join the locblog-list mailing list.

5. Support

If you feel that Locative Blog is beneficial to you, feel free to donate some money to allow further development. Thank you!

6. Download

Locative Blog is © Copyright Tyrell Hungary under the GNU General Public Licence, and is hosted on SourceForge.
You can download Locative Blog component releases from the project's download page

If you like to live on the edge, you can check the CVS repository by getting module geoLocation as described here.

This page last updated: $Date: 2005/02/05 15:34:26 $.

SourceForge Logo Donate to DarkIce