The CGI::Wiki plugin enables efficient management of UK location data for enhanced user experience.
The layout of the module is simple and straightforward. The module can be imported using the usual syntax use CGI::Wiki; followed by use CGI::Wiki::Plugin::Locator::UK; to import the plugin. After creating a CGI::Wiki instance, a new Locator instance can be created using CGI::Wiki::Plugin::Locator::UK->new. The plugin can then be registered with the wiki instance using $wiki->register_plugin( plugin => $locator ) ;.
The usage of the module is pretty simple and can be carried out by calling the appropriate functions. Given the metadata supplied during the creation of a node, the coordinates of any location can be retrieved using $locator->coordinates(node => "Jerusalem Tavern"). Using the coordinates, the straight-line distance between two nodes in kilometers can be calculated using $locator->distance(from_node => "Jerusalem Tavern", to_node => "Calthorpe Arms"). The module also enables finding all the nodes within a certain distance, which can be accomplished via $locator->find_within_distance(node => "Albion", metres => 200).
Overall, the CGI::Wiki::Plugin::Locator::UKCGI is a useful module for handling and calculating location metadata for a CGI::Wiki, making it an essential tool for developers.
Version 0.09: N/A