PDA

View Full Version : [Locator] Mod


VSDan
03-11-2009, 04:21 AM
Mod Title: Locator

Last Updated: 03/10/2009

Supported by Mod Developer: Yes

Where to Download: http://www.monster-submit.com/phpld/

Support Via This Thread or Download Site: Download Site

Price: $20.00 (includes access to all phpLD_Vault mods)

Compatible With: 3.20+ (other versions with modification)



Description: Locates listings on the basis of distance from entered ZIP Code. Results are shown in paginated format, with listings displayed from closest to furtherest (mileage shown for each listing). This mod was designed for version 3.2.0+ of phpLD, and NOT earlier versions (as earlier versions lack the ZIP field). However, the mod can be applied to earlier versions if you add ZIP as extra field, and adjust the mod installation.

Demo: Demo Available
(http://www.americanhomeinspectordirectory.com/) Try 11228 for ZIP Code and 100 for distance.

IMPORTANT NOTE: This mod requires a third party application (PHP ZIP Code Locator) to function. PHP ZIP Code Locator includes the US ZIP Code database and PHP files which integrate into phpLD with the help of this mod. They also have a Canadian Postal Code database. For further details: PHP ZIP Code Locator (http://www.shareit.com/affiliate.html?affiliateid=200089562&publisherid=200021864&target=http%3A%2F%2Fwww.code322.com%2Fzipcode_loca tor.php)

sheltonjb
03-11-2009, 09:56 AM
very smart bud.

would this work with the stuff we've done to mine?

MyWebSearches
03-11-2009, 03:25 PM
I like this mod and will install when I upgrade to the latest version.

Is there a mod to display the USA Map? I like map you have on that directory.

Thanks

bruleo
03-11-2009, 05:36 PM
If you want a decent map, take a look at fla-shop.com. :) (As used at GateUK)

Bruce.

VSDan
03-11-2009, 10:23 PM
@sheltonjb Sorry, no. Only US and Canadian codes.

@MyWebSearches That same third party also sells an application that will map the results on a Google map (if this is what you mean). I did this for a client. However, can be done without application by hardcoding Google map code into template like, and looping through it with regard to markers.

VSDan
03-19-2009, 07:40 PM
I've updated the mod to include an alternate version that does not require the use of a third party database. Instead, the alternate version uses a free third party service to populate the PLD_LINK table with longitude and latitude. No expensive database to purchase and install, and no third party scripts required. The free service provides up to a maximum of 1000 lookups per day. Should suffice for most people. Lookups are not done in real time. Lookups are only done when you run a script in the admin that populates the PLD_LINK tables - looking up LATITUDE and LONGITUDE for each link with defined ZIP. Once database populated, you only need to run geopopulate.php when you add new links. In front-end, radius search is done via querying existing PLD_LINK table using LATITUDE/LONGITUDE. At the moment, only applies to US ZIP Codes, and Canadian Postal Codes as the service only does lookups for these. The mod also uses its own internal caching system to store results of code searches to acclerate searching and reduce load. Right now it is beta, but appears to be working smoothly. You can test here:

http://www.beautifulbchomes.com/main.php
(try searching on V6G 1S8 with 2km range)