xroox Posted March 9, 2010 Share Posted March 9, 2010 Hi I am wondering if anyone could help direct me to this. Here is what I am looking for: By entering a Zip Code, a visitor is taken to a web page showing the closest geographic result. It is a unique .html page with images, text, etc. I have found several scripts/services like this: http://www.php4script.com/store-locator-script/ But this seems to take you to a page that has only their results from out of their database, I don't need that information to show up, the only place I need to send someone to is a specific URL (based on the closest Zip) which I will make manually most likely (each web page). Please advise this would be amazing and help me out incredibly. Link to comment https://forums.phpfreaks.com/topic/194699-does-this-exist-locator-question-thank-you/ Share on other sites More sharing options...
nafetski Posted March 9, 2010 Share Posted March 9, 2010 Yes, very possible. What you're doing is called geolocation...taking a particular address, and translating it into a coordinate system. However, what you want to do with the images and text and the "specific html" page can get a bit more complex. If all you want to do is put in a zip code, and grab the city name...that is very easy. There are databases (that you can obtain freely) that you can dump into mysql and just run those. If you want to get a lat/lon coordinate you can use googles geolocation service (for free!...up to 50,000 queries a day) if you need something more well tuned. I guess I'm not 100% sure what kind of application you are trying to develop...but as always when the question starts with "Is there a way" The answer is almost always "yes" Link to comment https://forums.phpfreaks.com/topic/194699-does-this-exist-locator-question-thank-you/#findComment-1023906 Share on other sites More sharing options...
teamatomic Posted March 10, 2010 Share Posted March 10, 2010 http://www.micahcarrick.com/04-19-2005/php-zip-code-range-and-distance-calculation.html HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/194699-does-this-exist-locator-question-thank-you/#findComment-1023961 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.