use gmaps_static::*;
let map = Map::new("YOUR_API_KEY".into(), (400, 300).into())
.scale(SCALE2)
.center("Colosseo".into())
.zoom(STREETS)
.format(GIF)
.maptype(HYBRID)
.region("it".into())
.language("it".into());
println!("{}", map.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
- center
- zoom
- size
- scale
- format
- maptype
- language
- region
- markers
- paths
- viewports (
visible
parameter) - styled maps
- support for
map_id
parameter - support for URL-based styles (
style
parameter)
- support for
- Clientid authentication
- Remove ambiguous type aliases in favour of wrapper types
- Remove immutability and implement
clone()
in builder struct - Better error management
- Proper crate documentation
- Examples
- More test (support for all examples in the official docs)