GeoPress Documentation

About GeoPress

GeoPress is a tool to help you embed geographic locations into your blog posts, and also include this information in your RSS/Atom syndicated feeds using the GeoRSS standard.

To begin using GeoPress, write a new article and enter a location name a geographic address in the appropriate fields. Press enter, or click the Geocode button to verify on the map that this is the appropriate location. Additionally, you can click on the map to set a location. Once you save your post, the geographic location is stored with the post entry. If you want to just enter latitude and longitude, then enter [latitude, longitude] into the address field.

Adding to your post

You can insert a dynamic map into your post automatically by selecting "Automatically add a map after any post" in the GeoPress options tab. This map will be inserted at the end of any post that has a location set for it.

Alternatively, you can manually insert a map by putting INSERT_MAP anywhere in your post text. The map will use the default map size as sent in your GeoPress options. You can override this size by passing in INSERT_MAP(height,width), where height and width are the size of the map, in pixels.

You can also insert the geographic coordinates, or address of the post by using INSERT_COORDS, and INSERT_ADDRESS, respectively. These will be output using Microformat styling.

INSERT_LOCATION will put in the stored name of the location into a post.

Limitations

Currently, GeoPress only supports a single geographic coordinate. In the future it will support lines, polygons, and multiple points.

Template Functions

These functions are available from GeoPress to further customize embedding geographic information into your blog. The Post functions return information about a specific post, or entry, and should be placed within the the_post() section of your templates. General functions can be used anywhere in your blog template and will return information pertaining to all of your geographic locations (such as maps, lists, links to locations)

General Functions

The following functions return the output. This allows you to perform any processing on the return text that you may want. To finally place the result in your template, use echo. For example, to output the stored address: <?php echo the_address(); ?>

Post Functions

Template Functions

GeoPress provides the ability to view all the posts at a specific location by putting "loc=#" in the url, where # is the id number of the location, or "location=savedname", where savedname is the the name of the location (e.g. Home or Trafalgar Square)