Crates.io | gmaps-static |
lib.rs | gmaps-static |
version | 0.0.1 |
source | src |
created_at | 2021-06-08 17:38:34.289941 |
updated_at | 2021-06-08 17:38:34.289941 |
description | A URL builder for Google Maps Static APIs |
homepage | |
repository | https://github.com/lmammino/gmaps-static |
max_upload_size | |
id | 407880 |
size | 1,364,890 |
Work in progress...
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¢er=Colosseo&scale=2&format=gif&maptype=hybrid&language=it®ion=it&key=YOUR_API_KEY