<filename>GPS.py
__author__ = 'Mandar'
import json
import googlemaps
from googlemaps import Client
def getgeo(address):
    gmaps = Client('<KEY>')
    json_response = gmaps.geocode(address)
    dictionary= json_response[0]['geometry']['location']
    return dictionary[u'lat'],dictionary[u'lng']

<filename>GPS.py
__author__ = 'Mandar'
import json
import googlemaps
from googlemaps import Client
def getgeo(address):
    gmaps = Client('<KEY>')
    json_response = gmaps.geocode(address)
    dictionary= json_response[0]['geometry']['location']
    return dictionary[u'lat'],dictionary[u'lng']
