GMaps Avoid Swiss Routes
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 trying alternative routes or dynamically selecting alternative cities - If the initial route or alternative routes 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 .
Metadata
Release files for gmaps-avoid-swiss 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gmaps_avoid_swiss-0.1.11.tar.gz | 27.2 kB | Without provenance | Details for gmaps_avoid_swiss-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gmaps_avoid_swiss-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for gmaps_avoid_swiss-0.1.11-py3-none-any.whl |
Total release size: 44.0 kB
Release files / gmaps_avoid_swiss-0.1.11.tar.gz
| Download URL | gmaps_avoid_swiss-0.1.11.tar.gz |
|---|---|
| Size | 27.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f94454a2947ce2f4980d0d76b4fbd04acc4eced237f675e724f0525058436b69
|
|
BLAKE2b-256 checksum How to use checksums |
f64a34da6dc808cd424c17d315d54e82973246b9dd97905eee23a591e7cecce5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / gmaps_avoid_swiss-0.1.11-py3-none-any.whl
| Download URL | gmaps_avoid_swiss-0.1.11-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36e8ccafe8651eacadae88c80cb0670f02dca145d87123fc430885387a09fc6f
|
|
BLAKE2b-256 checksum How to use checksums |
9976c34893801c83c615312a82b4c511f5ef326f52d8e4b8084ebd8bd0a3fb6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Security for gmaps-avoid-swiss 0.1.11
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.