A small api that uses fastapi-users
Project description
A simple python wrapper for Google Maps API. Use it to get the formatted address or co-ordinates of any location.
The code is Python 2, but Python 3 compatible.
Installation
Fast install:
pip install mygmap
For a manual install get this package:
wget https://github.com/nikhilkumarsingh/mygmap/archive/master.zip unzip master.zip rm master.zip cd mygmap-master
Install the package:
python setup.py install
Example
from geo import locator
# get formatted address of any location
print locator.get_address("rohini, delhi")
# get co-ordinates of location
print locator.get_coordinates("delhi")
Here is the output:
Rohini, New Delhi, Delhi, India (28.7040592, 77.10249019999999)
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
apimyapi-1.0.tar.gz
(4.1 kB
view details)
File details
Details for the file apimyapi-1.0.tar.gz
.
File metadata
- Download URL: apimyapi-1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0320a400634eefa0c95ebe413321730155ea8bd74e0c7c3e11bfabd101bba3b5 |
|
MD5 | 28b1edb1d43961527f94636e9d5fb999 |
|
BLAKE2b-256 | d64cc8a4eff27d3a820df7604732e6e2faef568e294c2697afd3101009163e7b |