fn offset_latlong(source: &LatLong, dn: i32, de: i32) -> LatLong {
    let d_lat: f64 = dn as f64 / 6378137f64;
    let d_lon: f64 = de as f64 / (6378137f64 * (PI * source.latitude / 180.0f64).cos());

    LatLong {
        latitude: source.latitude + d_lat * (180.0f64 / PI),
        longitude: source.longitude + d_lon * (180.0f64 / PI),
    }
}
/// Given a source lat/long point, and distances in meters to travel from that point, produce a new
/// lat/long point at the resulting location. This is not hyper accurate, but good enough for our
/// purposes.
Given a source lat/long point, and distances in meters to travel from that point, produce a new
lat/long point at the resulting location. This is not hyper accurate, but good enough for our
purposes.
Given a source lat / long point and distances in meters to travel from that point produce a new lat / long point at the resulting location . This is not hyper accurate but good enough for our purposes .
fn offset_latlong(source: &LatLong, dn: i32, de: i32) -> LatLong {
    let d_lat: f64 = dn as f64 / 6378137f64;
    let d_lon: f64 = de as f64 / (6378137f64 * (PI * source.latitude / 180.0f64).cos());
    LatLong {
        latitude: source.latitude + d_lat * (180.0f64 / PI),
        longitude: source.longitude + d_lon * (180.0f64 / PI),
    }
}
fn offset_latlong ( source : & LatLong , dn : i32 , de : i32 ) -> LatLong { let d_lat : f64 = dn as f64 / 6378137f64 ; let d_lon : f64 = de as f64 / ( 6378137f64 * ( PI * source . latitude / 180.0f64 ) . cos ( ) ) ; LatLong { latitude : source . latitude + d_lat * ( 180.0f64 / PI ) , longitude : source . longitude + d_lon * ( 180.0f64 / PI ) , } }
Given a source lat/long point, and distances in meters to travel from that point, produce a new
lat/long point at the resulting location.
Given a source lat / long point and distances in meters to travel from that point produce a new lat / long point at the resulting location .
source
&LatLong
dn
i32
de
i32
source
&LatLong
dn
i32
de
i32