1 unstable release

0.0.1 Jun 8, 2021

#16 in #google-maps

Download history 3/week @ 2024-09-18 4/week @ 2024-09-25 3/week @ 2024-11-27 33/week @ 2024-12-04 20/week @ 2024-12-11 5/week @ 2024-12-18 1/week @ 2024-12-25

61 downloads per month

MIT license

1.5MB
997 lines

GMapsStatic

Rust codecov crates.io badge Documentation

Work in progress...

Example

use GMapsStatic::*;

let map = UrlBuilder::new("YOUR_API_KEY".into(), (400, 300).into())
    .scale(SCALE2)
    .center("Colosseo".into())
    .zoom(STREETS)
    .format(GIF)
    .maptype(HYBRID)
    .region("it")
    .language("it");

println!("{}", map.make_url());

This will generate the following URL:

https://maps.googleapis.com/maps/api/staticmap?size=400x300&center=Colosseo&scale=2&format=gif&maptype=hybrid&language=it&region=it&key=YOUR_API_KEY

A map of the area sorrounding the Coliseum generated with GMapsStatic

Dependencies

~8–11MB
~289K SLoC