Struct geomorph::coord::Coord[][src]

pub struct Coord {
    pub lat: f64,
    pub lon: f64,
}

Holds a pair for latitude and longitude coordinates

Examples

use std::error::Error;

extern crate geomorph;

fn try_main() -> Result<geomorph::coord::Coord, geomorph::ParseError> {
    let lat: f64 = -23.0095839;
    let lon: f64 = -43.4361816;
     
    geomorph::coord::Coord::new(lat, lon)
}

fn main() {
    let coord = try_main().unwrap();
}

Fields

Latitude: Must be contained in the interval [-90.0..90.0]

Longitude: Must be contained in the interval [-180.0..180.0]

Methods

impl Coord
[src]

Auto Trait Implementations

impl Send for Coord

impl Sync for Coord