Geolocation application

Aug 28 2012 9:09 AM
how to develop Geolocation application 
ex:To calculate distance between two users that is if one user is 10km far away from second user then app should show that first user is 10km away from second user