A Python package that customizes Google Maps routing to avoid Swiss routes unless the origin, destination, or waypoints include locations within Switzerland.
Project description
A Python package that customizes Google Maps routing to avoid Swiss routes unless the origin, destination, or waypoints include locations within Switzerland.
Free software: MIT license
Documentation: https://gmaps-avoid-swiss.readthedocs.io.
Dependencies
This package requires the GEOS library as it utilizes Shapely for geographic operations. For installation instructions and more details, please refer to Geos page.
Features
Calculates duration, transit time, and encoded path from origin to destination
Avoids routing through Switzerland by dynamically selecting alternative cities - If the initial route intersects with Switzerland, the system optimizes the route by selecting intermediate cities to avoid crossing Swiss borders - The cities are prioritized based on their proximity to the intersection points with Switzerland - The system iteratively tries different cities until a route that doesn’t pass through Switzerland is found - If no valid route is found after exhausting all city options, the system falls back to the original route
Right now its only possible to use address in format
{"lat": 48.5734, "lng": 7.7521}
To-Do List
Add opting out of avoiding Swiss.
Improve Swiss route avoidance algorithms.
Credits
This package was created with Cookiecutter .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gmaps_avoid_swiss-0.1.8.tar.gz
.
File metadata
- Download URL: gmaps_avoid_swiss-0.1.8.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebbb7740c98d9ea8bb0f59a4b3e7b10fa265d83186e5c6fbd81713524351990d |
|
MD5 | 8a99e0fe35943a1337862e5ea9b4d04a |
|
BLAKE2b-256 | a991b477ee38ed523aa98a2c86556078abf849a7372e42c60fdb64cd4541ba43 |
File details
Details for the file gmaps_avoid_swiss-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: gmaps_avoid_swiss-0.1.8-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a20aa6932a9a87e51fd61bac5dac378dc971be6b0c7aac22fd4c9dbbe1ff3a65 |
|
MD5 | 76f4c57a30783bd6cb18ed656c3d74a2 |
|
BLAKE2b-256 | eb5eb0e1f8dc5941ef3f83f7136c41c392b9b9ccac2679534806e6bcfe5bac38 |