map_search

Provides functions and a page to search for points or paths defined in cck_maps, ranked by proximity to a given point.

If the Location module is installed then the search page allows entering a postcode, otherwise the location to search near must be given as a lat/long pair.

Paths in cck_maps (where a map has more than one marker) are determined with an algorithm that finds the two closest points first, which form the first part of the path, then progressively locates the next closest points to either end of the current path. There's flexibility for adding other path determining algorithms, however no more have been implemented yet (such as allowing paths to be defined by the order in which the markers were placed or alphabetically by title).

This was built for a website that only required certain functions of this type, but the module was developed to be fairly flexible for other needs. Not all of the extra functions envisaged are implemented.

I've just noticed that the form on the search page doesn't use the Forms API. I'm ashamed, but not going to change it now as I don't have the time and/or funding, if someone else wants to, that'd be grand. :) I'm guessing the Forms API wasn't used for a reason, but I don't know off the top of my head what that reason was.

This module was developed by e-geek.

Downloads

Version Downloads Date Links
5.x-1.x-dev Download (11.64 KB) 2008-Jul-30 Notes


 
 

Drupal is a registered trademark of Dries Buytaert.