-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDESCRIPTION.txt
More file actions
55 lines (30 loc) · 821 Bytes
/
DESCRIPTION.txt
File metadata and controls
55 lines (30 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
mygmap
======
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
--------
.. code:: python
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)