Skip to main content

GeoCoordinate

Trait GeoCoordinate 

Source
pub trait GeoCoordinate {
    // Required method
    fn geo_location(&self) -> GeoLocation;
}
Expand description

緯度経度情報を取得するためのトレイト

Required Methods§

Source

fn geo_location(&self) -> GeoLocation

GeoLocationを取得

§Example
ⓘ
let loc = boring.geo_location();
let (lng, lat) = loc.to_jgd2011(&transformer)?;
let (lng, lat) = loc.to_wgs84()?;

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§