googleprojection 1.2.0

Project world- or screen-space coordinates for use in Google Maps tiles (WebMercator)
Documentation
1
2
3
4
5
6
7
8
extern crate googleprojection;

#[test]
fn it_works() {
    let pixel = googleprojection::from_ll_to_pixel(&(13.2, 55.9), 2).unwrap();
    assert_eq!(pixel.0, 550.0);
    assert_eq!(pixel.1, 319.0);
}