Skip to main content

Easily create Google Maps routes using Python

Project description

GMaps Route

GMaps Route allows you to create routes for Google Maps offline directly in Python. The project lets you create a route between two locations, add intermediate destinations and specify waypoints (subdestinations) to route along.

A simple and more complex example can be found in the examples/ directory.

Installation

pip install gmaps-route

Examples

Simple

python examples/simple.py
https://www.google.com/maps/dir/data=!4m9!4m8!1m3!2m2!1d8.6821267!2d50.1109221!1m3!2m2!1d11.5819805!2d48.1351253

Will print the URL to a simple route from Munich (start) to Frankfurt (end). Image of simple route

Complex

python examples/large.py
https://www.google.com/maps/dir/data=!3m1!1e3!4m26!4m25!1m7!2m2!1d8.6821267!2d50.1109221!3m3!1m2!1d8.4401422!2d49.4816004!1m11!2m2!1d9.1829321!2d48.7758459!3m3!1m2!1d9.9998080!2d48.4040736!3m3!1m2!1d11.4316520!2d48.1276310!1m3!2m2!1d11.5819805!2d48.1351253!3e0

Will print the URL to a route from Munich (start) to Stuttgart (intermediate) to Frankfurt (end). It also adds subdestinations (waypoints to route-along) between destinations. Note that these subdestinations between destinations always have to be added to the later destination of the two. This route also configures the map type as 'Satellite' and transportation type as 'Car'. Image of complex route

Project details


Download files

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

Source Distribution

gmaps_route-0.1.2.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

gmaps_route-0.1.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gmaps_route-0.1.2.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.11.15 Linux/6.17.0-1008-azure

File hashes

Hashes for gmaps_route-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cb9e68bdd1af762384b23b65853f78a1a108664987ecd602522214b2a9a780c1
MD5 7a31751790dd26e28b1b54503392132e
BLAKE2b-256 c03c53c2a3387ae0d1f53cc30f80444876583c0b1ab64fea94fc233fb25a661d

See more details on using hashes here.

File details

Details for the file gmaps_route-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gmaps_route-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.11.15 Linux/6.17.0-1008-azure

File hashes

Hashes for gmaps_route-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19086a56fbf6f5be7d73f8635e941d1f97ac20e9306ec76fb1bd552f4e017f77
MD5 1ad152e13e2ab497ccc949df9856c4f3
BLAKE2b-256 9ddd352081e2f8b50a314aa6f5763d058489db2f0f75b72e36220b8b4ccde3d8

See more details on using hashes here.

Supported by

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