Struct slippy_map_tiles::LatLon [] [src]

pub struct LatLon { /* fields omitted */ }

A single point in the world.

Since OSM uses up to 7 decimal places, this stores the lat/lon as f32 which is enough precision of that

Methods

impl LatLon
[src]

[src]

Constructs a LatLon from a given lat and lon. Returns None if the lat or lon is invalid, e.g. a lat of 100.

[src]

Latitude

[src]

Longitude

[src]

Trait Implementations

impl PartialEq for LatLon
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for LatLon
[src]

[src]

Formats the value using the given formatter.

impl Clone for LatLon
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more