Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

adrielp/maps

Repository files navigation

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

About

A Go CLI Utility that generates map images using Google Maps Static API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published