Skip to main content

A matplotlib-like interface to render all the data you’d like on top of Google Maps.

Several plotting methods make creating exploratory map views effortless.

To install: pip install gmplot

Documentation (with examples): API Reference

Crash course

import gmplot

# Create the map plotter:
apikey = '' # (your API key here)
gmap = gmplot.GoogleMapPlotter(37.766956, -122.448481, 14, apikey=apikey)

# Outline the Golden Gate Park:
golden_gate_park = zip(*[
    (37.771269, -122.511015),
    (37.773495, -122.464830),
    (37.774797, -122.454538),
    (37.771988, -122.454018),
    (37.773646, -122.440979),
    (37.772742, -122.440797),
    (37.771096, -122.453889),
    (37.768669, -122.453518),
    (37.766227, -122.460213),
    (37.764028, -122.510347)
])
gmap.polygon(*golden_gate_park, color='cornflowerblue', edge_width=10)

# Highlight some attractions:
attractions_lats, attractions_lngs = zip(*[
    (37.769901, -122.498331),
    (37.768645, -122.475328),
    (37.771478, -122.468677),
    (37.769867, -122.466102),
    (37.767187, -122.467496),
    (37.770104, -122.470436)
])
gmap.scatter(attractions_lats, attractions_lngs, color='#3B0B39', size=40, marker=False)

# Mark a hidden gem:
gmap.marker(37.770776, -122.461689, color='cornflowerblue')

# Draw the map:
gmap.draw('map.html')
https://raw.githubusercontent.com/gmplot/gmplot/master/docs/images/README_Example.png

Inspired by Yifei Jiang’s (jiangyifei@gmail.com) pygmaps module.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gmplot-1.4.1.tar.gz (136.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gmplot-1.4.1-py3-none-any.whl (164.7 kB view details)

Uploaded Python 3

File details

Details for the file gmplot-1.4.1.tar.gz.

File metadata

  • Download URL: gmplot-1.4.1.tar.gz
  • Upload date:
  • Size: 136.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for gmplot-1.4.1.tar.gz
Algorithm Hash digest
SHA256 cfe72d251c17b5c05043169d121a9728554bf65b8c96760ce9fabb6d269c6667
MD5 9082b32fe2c6ad60dfcf3fdeef467b71
BLAKE2b-256 61fab37cfaafdb919542224dcd5dcfa7cb1d19e06055fc7c04b13b0728da33c6

See more details on using hashes here.

File details

Details for the file gmplot-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: gmplot-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 164.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for gmplot-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 873bcecd90f0e63a73b2876e15a2225145d726f3b7cfb47a363a3a5459fc778d
MD5 c81a209d21757e117aa9f193d4bb3f24
BLAKE2b-256 2f2f45399c0a3b75d22a6ece1a1732a1670836cf284de7c1f91379a8d9b666a1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.4.1 This release

2 files

1.4.0

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

1 file

1.1.1

1 file

1.1.0

1 file

1.0.5

1 file

1.0.4

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page