Allowing U-Turn at the end of a dead-end street which is necessary for

via routes.
This commit is contained in:
DennisOSRM
2012-01-01 16:04:59 +01:00
parent 62aab1cec6
commit ee1b3afdcf
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ inline double ApproximateDistance( const int lat1, const int lon1, const int lat
assert(lat2 != INT_MIN);
assert(lon2 != INT_MIN);
static const double DEG_TO_RAD = 0.017453292519943295769236907684886;
///Earth's quatratic mean radius for WGS-84
//Earth's quatratic mean radius for WGS-84
static const double EARTH_RADIUS_IN_METERS = 6372797.560856;
double latitudeArc = ( lat1/100000. - lat2/100000. ) * DEG_TO_RAD;
double longitudeArc = ( lon1/100000. - lon2/100000. ) * DEG_TO_RAD;