Skip to main content

IPython plugin for Google Maps JavaScript API

Project description

gmaps is a plugin for including interactive Google maps in the IPython Notebook.

Let’s plot a heatmap (data taken from the Google maps API documentation):

In [1]: import gmaps

In [2]: data = [ [ 37.782, -122.447 ], # [ latitude, longitude ] pairs
                 [ 37.782, -122.445 ],
                 [ 37.782, -122.443 ],
                 [ 37.782, -122.441 ],
                 [ 37.782, -122.439 ],
                 [ 37.782, -122.437 ] ]
        map = gmaps.heatmap(data)
        gmaps.display(map)

Installation

gmaps can only be installed from source. Clone the git repository by running:

$ git clone https://github.com/pbugnion/gmaps.git

Change to the project’s root directory and run:

$ python setup.py install

Getting started

Currently, only heatmaps are supported. Draw a heatmap by passing a list of (latitude, longitude) pairs to the heatmap command.

There are example notebooks in the examples directory. The heatmap example is also visible on nbviewer, but note that you need to download the notebook to actually see the Google Map.

Issue reporting and contributing

Report issues using the github issue tracker.

Contributions are welcome. Read the CONTRIBUTING guide to learn how to contribute.

Project details


Release history Release notifications | RSS feed

This version

0.1.2

Download files

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

Source Distributions

gmaps-0.1.2.zip (18.3 kB view details)

Uploaded Source

gmaps-0.1.2.tar.gz (11.1 kB view details)

Uploaded Source

File details

Details for the file gmaps-0.1.2.zip.

File metadata

  • Download URL: gmaps-0.1.2.zip
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gmaps-0.1.2.zip
Algorithm Hash digest
SHA256 3051367a72997ec4dc2df70cc6c7d626bce635c4758c8da81c6115f8478b19cc
MD5 78cc71b58d199aa0d2caee0bb48a356d
BLAKE2b-256 8b3c7c9b774bb89dc1cc30cad45b1278e8601ad86b989763971a58b150570f08

See more details on using hashes here.

File details

Details for the file gmaps-0.1.2.tar.gz.

File metadata

  • Download URL: gmaps-0.1.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gmaps-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bd65d5397321c99e6782447e4028daf95a9d771527174264ed61b6bba8af6b28
MD5 884130fd805e69712c2160a0c0f05a9f
BLAKE2b-256 904fd0e8a7d4c12b8e45aed727efd567bc37c6a12c9aa07d334cd4dfe046444c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page