Projekte
Aus Mein Wiki
Sebra (Diskussion | Beiträge) (→PLZ-Umkreissuche) |
Sebra (Diskussion | Beiträge) (→PLZ-Umkreissuche) |
||
| Zeile 10: | Zeile 10: | ||
* APIs | * APIs | ||
** http://www.geotag.de/geocoding.html | ** http://www.geotag.de/geocoding.html | ||
| + | |||
| + | |||
| + | * Entfernungsberechnung: | ||
| + | ** Haversine-Formel. | ||
| + | |||
| + | dlon = B_lon - A_lon | ||
| + | dlat = B_lat - A_lat | ||
| + | a = (sin(dlat/2))^2 + cos(A_lat) * cos(B_lat) * (sin(dlon/2))^2 | ||
| + | c = 2 * arcsin(min(1,sqrt(a))) | ||
| + | d = R * c | ||
| + | |||
| + | (R = Erdradius) | ||

