gmaps-static

Crates.iogmaps-static
lib.rsgmaps-static
version0.0.1
sourcesrc
created_at2021-06-08 17:38:34.289941
updated_at2021-06-08 17:38:34.289941
descriptionA URL builder for Google Maps Static APIs
homepage
repositoryhttps://github.com/lmammino/gmaps-static
max_upload_size
id407880
size1,364,890
Luciano Mammino (lmammino)

documentation

README

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

Commit count: 25

cargo fmt