RE: [PHP] open source zip code geographical drill down

From: Date: Fri, 03 Nov 2006 21:37:55 +0000
Subject: RE: [PHP] open source zip code geographical drill down
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-244185@lists.php.net to get a copy of this message
> If you've got several more hours to spare, providing a Google map as > an alternative is also quite do-able, though not as quick-n-easy as > you have to walk the XML output in Javascript "by hand" instead of > letting a built-in function do it for you. > > Then you just need to spend a day or two figuring out how to get the > dang maps to zoom in and focus on the zip code point you want. That > has a couple gotchas I've just stumbled through myself, but can't > really express yet in short form... I do this on a site I'm developing, and the shortcut I took was simply to plug in the address in the URL and launch it into a new JS window.open() using the features attributes. Popup blockers don't prevent that and it looks very clean. Plus it's trivial to do and gives you all the fancy Google maps zooming, directions and such... http://maps.google.com/maps?f=d&hl=en&saddr=1234+Some+St,+SomeTown,+WA+98765 &daddr=1000+Another+Pl+SomeTown+WA&ie=UTF8&z=11&om=1 http://www.webreference.com/js/tutorial1/features.html DÆVID

« previous php.general (#244185) next »