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

PHPit.net: Using globals in PHP

DevShed: Error Handling for Dynamic Twitter Signature Images with PHP

NetTuts.com: Laravel Unwrapped: Session, Auth and Cache

Max Horvath's Blog: How to enable the Xdebug debugger in Zend Studio for Eclipse

ProDevTips.com: Memcached in PHP on Dapper


Community Events

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


language security version voicesoftheelephpant laravel5 opinion release community development podcast series unittest interview library extension framework laravel api introduction php7

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