Skip to main content

python-qgmap

Qt Google Map widget for PySide/PyQt6

Features:

  • Specify locations either by latitude, longitude pairs or street addresses by means of GeoCoding
  • Programatically centering, zooming and manipulate markers
  • Flexible marker properties (ie. draggable, icon, title...)
  • Emits signals on user actions: dragged markers, pans or zooms
  • Easy to extend, thanks to the painless python-qt-javascript interface

Usage Example

Installation

By using pip:

$ pip3 install qgmap

Usage

Two main classes are provided:

  • qgmap.GeoCoder: Retrieves geo-coordinates (latitude, longitude) from street addresses
  • qgmap.QGoogleMap: A WebView widget containing a GoogleMap, with some convenience accessors to manage center, zoom, markers...

See the main example code at qgmap-example.py

Using it with PyQt6

By default the classes use PySide, but the code works for PyQt6 if you set to False the usePySide module variable by hand.

Any suggestion to make this less hacky is welcome.

Acknoledgements

This Python code has been inspired in Henrik Hartz's C++ example code:

https://blog.qt.digia.com/blog/2008/07/03/putting-qtwebkit-to-use-with-google-maps/

Metadata

Release files for qgmap 1.1.0

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

Source distribution (sdist)

Source distribution for qgmap 1.1.0
File Size Uploaded Provenance Actions
qgmap-1.1.0.tar.gz 45.7 kB Without provenance Details for qgmap-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 80.1 kB

Release files / qgmap-1.1.0.tar.gz

Download URL qgmap-1.1.0.tar.gz
Size 45.7 kB
Tags Source
SHA-256 checksum
How to use checksums
45efbca2344e1a876ad243f1272732445f773c298663b7996344189f11262eb5
BLAKE2b-256 checksum
How to use checksums
3a535687c08c24092a251f1f477e005365d6657420a73fab59d21d53de7883e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / qgmap-1.1.0-py3-none-any.whl

Download URL qgmap-1.1.0-py3-none-any.whl
Size 34.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a93005d6b4de48d20c25366d34d323c3a22f0d2cd135f31887accf34a38217cc
BLAKE2b-256 checksum
How to use checksums
a00fa536f2d12b0e3b48b81f3d958584cbaf1a96977efed4e74000d7479d4544
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Security for qgmap 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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