Skip to main content

A Python package that customizes Google Maps routing to avoid Swiss routes unless the origin, destination, or waypoints include locations within Switzerland.

Project description

https://img.shields.io/pypi/v/gmaps_avoid_swiss.svg Documentation Status

A Python package that customizes Google Maps routing to avoid Swiss routes unless the origin, destination, or waypoints include locations within Switzerland.

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 .

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_avoid_swiss-0.1.11.tar.gz (27.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_avoid_swiss-0.1.11-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file gmaps_avoid_swiss-0.1.11.tar.gz.

File metadata

  • Download URL: gmaps_avoid_swiss-0.1.11.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for gmaps_avoid_swiss-0.1.11.tar.gz
Algorithm Hash digest
SHA256 f94454a2947ce2f4980d0d76b4fbd04acc4eced237f675e724f0525058436b69
MD5 71cf2e8de31689063272c8bcd9ae61a8
BLAKE2b-256 f64a34da6dc808cd424c17d315d54e82973246b9dd97905eee23a591e7cecce5

See more details on using hashes here.

File details

Details for the file gmaps_avoid_swiss-0.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for gmaps_avoid_swiss-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 36e8ccafe8651eacadae88c80cb0670f02dca145d87123fc430885387a09fc6f
MD5 78cb39379bf53b749069f1a50d9f80f2
BLAKE2b-256 9976c34893801c83c615312a82b4c511f5ef326f52d8e4b8084ebd8bd0a3fb6d

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