160 |
//Latitude (horizonal), longitude(vertical) so |
//Latitude (horizonal), longitude(vertical) so |
161 |
// 1 degree latitude is ~ 111320 meters, since the distance between the horizonal lines is always the same |
// 1 degree latitude is ~ 111320 meters, since the distance between the horizonal lines is always the same |
162 |
// 1 degree longitude is ~111320 meters at equator but gets shorter as we get closer to the poles. |
// 1 degree longitude is ~111320 meters at equator but gets shorter as we get closer to the poles. |
163 |
// the "hack" with max 0.4 degrees latitude and 0.75 degrees longitude is only valid since we only service danish trains, |
// so 1 degree longitude is 64.5 km at denmarks southern point (gedser=54.55,11.95) |
164 |
|
// and is 59.4km at northern point (skagen = 57.75,10.65) |
165 |
|
// The "hack" with max 0.4 degrees latitude and 0.75 degrees longitude is only valid since we only service danish trains, |
166 |
// in denmark 0.4dg latitude ~ 44km, 0.75dg longitude ~ 47km |
// in denmark 0.4dg latitude ~ 44km, 0.75dg longitude ~ 47km |
167 |
|
|
168 |
// the ultra fast method (and only slightly inaccurate as long as we only cover a limited geographically area) |
// the ultra fast method (and only slightly inaccurate as long as we only cover a limited geographically area) |