Gives the direction on Google Maps
Project description
GmapDirection
Installation
pip install gmapdirection
How to use it?
Here are the functions which will provide some results...
import gmapdirection
To get current location
gmapdirection.getCurrentLocation()
This will provide you a dictionary, in which you will get details like,
IP, City, Region, Country, Location, Org, Postal, Timezone
To get direction link
gmapdirection.getDirection("Lucknow, Uttar Pradesh", "Tokyo, Japan")
It require 2 arguments, first StartingPoint (you don't have to put complete address, it will automatically calculate if not given complete) and DestinationPoint.
It will then return a google map link, showing the direction from starting point to destination point.
If you write "current" in address then, it will find the directions from your current location.
To get total distance
gmapdirection.getDistance(type)
Replace type with "km" or "mile", by default it will return total distance from start to destination in "km". You must first execute the getDirection() function to store total_distance
Thank You !!!
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
Hashes for gmapFinder-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bacfce4e21b263a4e2e07a5ac9a96e4e12c4095624b055fa25e58f50b0c02824 |
|
MD5 | 1fc1abbb0ff9c1d223c3fa7f46f3c4dc |
|
BLAKE2b-256 | 946b8cc50e4672898eb4c8c8878bb41e12f12069e23571a3ef3951c760dce15a |