maps

command module
v0.0.0-...-9ea4bde Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 11 Imported by: 0

README

Maps

Repsitory hosting files to create territory maps & download the images by using the Maps Static API from the Google Maps Platform.

TODO

  • 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

Requirements

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"
}

Install

There are a couple different methods to install maps.

Preferred methods
  • Via go (recommended): go install github.com/adrielp/maps
  • Via brew: brew install adrielp/tap/maps (Mac / Linux)
Mac/Linux during local development
  • Clone down this repository and run make install
Windows

There's a binary for that, but it's not directly supported or tested because #windows

Getting Started

Prereqs
Instructions
  • Clone down this repository
  • Run commands in the Makefile like make build

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL