Postal Code/Locator
Wil McGilvery
wmcgilvery-6d3DWWOeJtE at public.gmane.org
Tue Feb 17 02:53:23 UTC 2004
Here is another one. Last post I promise.
http://www.findbystate.com/
Regards,
Wil McGilvery
Manager
Lynch Digital Media Inc
416-744-7949
416-716-3964 (cell)
1-866-314-4678
416-744-0406 FAX
www.LynchDigital.com
-----Original Message-----
From: Ilya Palagin [mailto:IlyaPalagin-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org]
Sent: Monday, February 16, 2004 3:50 PM
To: tlug-lxSQFCZeNF4 at public.gmane.org
Subject: Re: [TLUG]: Postal Code/Locator
David Mayerlen wrote:
>>> Anybody ever build a store locator? Something along the idea of having a
>>>user enter a postal code and then showing them a list of nearby stores?
>>>
>>> Any suggestions much appreciated.
>>>
>>> I wrote a locator in Perl that worked on a little bit of a drill-down
>>>scenario with a few maps that broke down Ontario into regions and gave
>>>lists of stores for those regions BUT I'm pulling my hair out trying to
>>>find the darn thing!!!
>>
>>Isn't this matter of grep'ing a file with store addresses?
>>
>
>
> More than that. Need to compare a user's postal code to the available
> store postal codes and determine which ones are sorta nearby.
>
Clumsy, but cheap solution: with LWP (WWW library for Perl) you can send
requests to http://ca.maps.yahoo.com, doing "Driving directions"
requests between several points you've broken down Ontarion into and
your client's location. Just compare distances then. If your traffic
isn't too hard, and yahoo doesn't change its Canada Maps interface too
often, this may work.
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list