You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

vrv-mygmap

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vrv-mygmap

A small wrapper around google maps api

1.0.7
PyPI
Maintainers
1

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 vrv-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)

Keywords

maps location address

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts