c# Programming Glossary: lon1
How do I find the lat/long that is x km north of a given lat/long http://stackoverflow.com/questions/1125144/how-do-i-find-the-lat-long-that-is-x-km-north-of-a-given-lat-long asin sin lat1 cos d cos lat1 sin d cos tc IF cos lat 0 lon lon1 endpoint a pole ELSE lon mod lon1 asin sin tc sin d cos lat.. cos tc IF cos lat 0 lon lon1 endpoint a pole ELSE lon mod lon1 asin sin tc sin d cos lat pi 2 pi pi ENDIF And this is my C#..
Calculate endpoint given distance, bearing, starting point http://stackoverflow.com/questions/3225803/calculate-endpoint-given-distance-bearing-starting-point private GLatLng pointRadialDistance double lat1 double lon1 double radianBearing double radialDistance double rEarth 6371.01.. double rEarth 6371.01 lat1 DegreeToRadian lat1 lon1 DegreeToRadian lon1 radianBearing DegreeToRadian radianBearing.. 6371.01 lat1 DegreeToRadian lat1 lon1 DegreeToRadian lon1 radianBearing DegreeToRadian radianBearing radialDistance radialDistance..
Calculate distance of two geo points in km c# http://stackoverflow.com/questions/6544286/calculate-distance-of-two-geo-points-in-km-c-sharp the distance between two places. summary param name lon1 param param name lat1 param param name lon2 param param name.. returns public static double DistanceBetweenPlaces double lon1 double lat1 double lon2 double lat2 double R 6371 km double.. km double dLat Radians lat2 lat1 double dLon Radians lon2 lon1 lat1 Radians lat1 lat2 Radians lat2 double a Math.Sin dLat 2..
|