Giter Site home page Giter Site logo

gmaps-static's Introduction

gmaps_static

Rust codecov crates.io badge Documentation

Work in progress...

Example

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&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

Features

  • 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)
  • Clientid authentication

TODO list pre-1.0.0

  • 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)

Contributing

Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.

License

Licensed under MIT License. © Luciano Mammino.

gmaps-static's People

Contributors

lmammino avatar

Stargazers

Nick Rempel avatar Javier Viola avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.