Introduction - If you have any usage issues, please Google them yourself
You can use this function to calculating the distance on the real world (in KM) between 2 Location coordinates (Longitudes and lattitudes). Its simple but very rare and very useful if you are gonna make some LBS applications.Its also including sample code to use this function to discover nearest place from some coordinates using PostGreSQL database.