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.

Release files for gmplot 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gmplot 1.4.1
File Size Uploaded
gmplot-1.4.1.tar.gz 136.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gmplot 1.4.1
File Interpreter ABI Platform
gmplot-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 301.0 kB

Release files / gmplot-1.4.1.tar.gz

Download URL gmplot-1.4.1.tar.gz
Size 136.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cfe72d251c17b5c05043169d121a9728554bf65b8c96760ce9fabb6d269c6667
BLAKE2b-256 checksum
How to use checksums
61fab37cfaafdb919542224dcd5dcfa7cb1d19e06055fc7c04b13b0728da33c6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / gmplot-1.4.1-py3-none-any.whl

Download URL gmplot-1.4.1-py3-none-any.whl
Size 164.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
873bcecd90f0e63a73b2876e15a2225145d726f3b7cfb47a363a3a5459fc778d
BLAKE2b-256 checksum
How to use checksums
2f2f45399c0a3b75d22a6ece1a1732a1670836cf284de7c1f91379a8d9b666a1
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.4.1 This release

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.5

1 release file

1.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page