Page 1 of 1

CGGoogleMaps and CompanyDirectory - True Geographical Search

Posted: Thu Jul 28, 2011 9:34 am
by fireboydesign
Hi all,

We're currently working on a CMSMS website that forms a central database/directory for people to find graphic designers.

The core function of the site is to allow clients to search for a graphic designer within an X mile radius of a town/city/postcode in the UK.

I have successfully managed to get the CGGoogleMaps and CompanyDirectory modules talking to each other, but have encountered a fairly major snag with regards to how the search results are displayed. Upon conducting a search, it seems there is no way to display results based upon the center of the map, only sorted by postcode "alphabetically", which is highly inaccurate.

An example would be if you were to search within 10 miles of London, with search results limited to 10, you would only get results with companies who have the postcode starting with A, then B etc.

What I need is to be able to conduct a search within 10 miles of London and the results sorted from its geographical center, getting further and further away as you skip through pages of results. Hopefully that makes sense?

If someone would be willing to quote me to create this functionality that would be great, or if more info is needed please get in touch.

Thanks, Steve