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.
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.
Currently, GeoPress only supports a single geographic coordinate. In the future it will support lines, polygons, and multiple points.
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)
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(); ?>
geopress_map(height, width, num_locs): returns a GeoPress map of the last num_locs number of locations. If no value is set for num_locs, then all locations are plotted. caution: plotting all locations could slow down/prevent people viewing your blog.geopress_post_map(height, width): returns a GeoPress map of the current post's locationthe_coord(): returns the coordinates for the post as an array, latitude, longitudethe_address(): returns the address for the postthe_location_name(): returns the saved name for the post's locationthe_geo_mf(): returns the coordinates of the post in Microformat geo format the_adr_mf(): returns the address of the post in Microformat adr format the_loc_mf(): returns the location name of the post in Microformat hCard format 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)
geopress_location_name(): prints out the name of the location if it is passed in by the url..geopress_locations_list(): prints out an unordered list of locations and links to display posts at that location.