News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Timothy Boronczyk's Blog:
Geolocation Search
January 28, 2011 @ 11:49:49

In a post earlier this month Timothy Boronczyk took a look at a common feature for web applications that's popping up more and more given the emphasis of social networking - geolocation of your users. The post shows you how to use various web services and data sets to determine where a user is and how they relate to other locations.

Services that allow users to identify nearby points of interest continue to grow in popularity. I'm sure we're all familiar with social websites that let you search for the profiles of people near a postal code, or mobile applications that use geolocation to identify Thai restaurants within walking distance. [...] The first step is to obtain the latitude and longitude coordinates of any locations you want to make searchable.

He talks about why postal code-based location isn't the best option, a web service (like Geocoder.ca for Canadians) could provide more accurate results. He includes code you can use to help search the data based off of two formulas - one to grab the larger area of locations and the other to filter them down into the closest. Finally, he shows how to use the Geolocation API service to get the results based on the user's search parameters.

0 comments voice your opinion now!
tutorial geolocation search forumla webservice postalcode


blog comments powered by Disqus

Similar Posts

DevShed: Using the Clone Magic Function in PHP 5

ONLamp.com: Introduction to Flex Using PHP

DZone.com: Creating a virtual server with Vagrant: a practical walkthrough

PHP Freaks: Design Patterns - Introduction

James Morris' Blog: A Symfony2 Console Command and the Foursquare API Venuehistory


Community Events





Don't see your event here?
Let us know!


release tips laravel code framework zendserver podcast series developer development language community deployment api version list application introduction conference interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework