Repsitory hosting files to create territory maps & download the images by using the Maps Static API from the Google Maps Platform.
- make requests to static map via google maps library
- ensure maps library outputs image file
- read in kml file & parse data
- write unit tests
- add additional config (like default sizing of images & zoom) into
config.json
- add size and zoom level for example
You need an API Key and a Digital Signature
Take your API Key and create a directory in your home named ~/.maps
. Then place your API key in a json file named config.json
.
The full path should resemble ~/.maps/config.json
.
The JSON file should resemble:
{
"api_key": "myapikey1234"
}
There are a couple different methods to install maps
.
- Via
go
(recommended):go install github.com/adrielp/maps
- Via
brew
:brew install adrielp/tap/maps
(Mac / Linux)
- Clone down this repository and run
make install
There's a binary for that, but it's not directly supported or tested because #windows
- Have make installed
- Have GoReleaser installed
- Clone down this repository
- Run commands in the Makefile like
make build