Skip to content

Latest commit

 

History

History
87 lines (59 loc) · 3.1 KB

README.md

File metadata and controls

87 lines (59 loc) · 3.1 KB

Map Styles

gopro-dashboard.py supports a number of map styles and providers.

The providers are:

  • OSM/OpenStreetmap
  • ThunderForest
  • Geoapify

Selecting the Map Style

Use the command line option --map-style to choose the map style

Example:

--map-style tf-cycle

API Keys

There are three ways that the API key can be supplied for the map. You'll need to sign up with the map provider. The styles supported by the program all have free plans that are big enough to render a video. The program maintains a local cache of the tiles.

Command Line

API Keys can be provided on the command line, with --map-api-key xxxxx,

Configuration File

A file can be created ~/.gopro-graphics/map-api-keys.json, which contains the api keys

Example

{
        "thunderforest": "abcd1234",
        "geoapify": "1234abcd"
}

Environment Variable

The environment will be searched for API_KEY_<provider>

Example: API_KEY_THUNDERFOREST=abcd1234

Style Examples

Here are examples of the various styles.

. . . .
osm tf-cycle tf-transport tf-landscape
tf-outdoors tf-transport-dark tf-spinal-map tf-pioneer
tf-mobile-atlas tf-neighbourhood tf-atlas geo-osm-carto
geo-osm-bright geo-osm-bright-grey geo-osm-bright-smooth geo-klokantech-basic
geo-osm-liberty geo-maptiler-3d geo-toner geo-toner-grey
geo-positron geo-positron-blue geo-positron-red geo-dark-matter
geo-dark-matter-brown geo-dark-matter-dark-grey geo-dark-matter-dark-purple geo-dark-matter-purple-roads
geo-dark-matter-yellow-roads

Attribution

Please ensure that you attribute the map correctly

OpenStreetMap

© OpenStreetMap contributors http://www.openstreetmap.org/copyright

Thunderforest Map

Maps © Thunderforest http://www.thunderforest.com/ Data © OpenStreetMap contributors http://www.openstreetmap.org/copyright

Geoapify Map

Maps © Geoapify https://www.geoapify.com/ Data © OpenStreetMap contributors http://www.openstreetmap.org/copyright