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.1.tar.gz (13.2 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.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gmaps_route-0.1.1.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for gmaps_route-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ef645cb73ab102fcf06c894bfe2c0c829382f66bf947ff39ee33bbcd2e037f1c
MD5 76023371d1b0632ac9edd4e18ca02917
BLAKE2b-256 b5bcd249dabb099bae575dda841b948d3bd7eaba3c2c1ceae78a8c0e5ed47c9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gmaps_route-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for gmaps_route-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b82a10c846674a1a6f7032482c9a79f324d19c172da71c0e30a05950722ee6f
MD5 c094df53c267025ee988facac82a409f
BLAKE2b-256 ddbc3c397ea41ea6f2e7a5eebae995357bc9fb0f0e23fe0d1678b40430b9b367

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