# reverse.py
from geopy import geocoders
from django.utils.encoding import smart_str

def reverseAdr(lat,lng):
	g = geocoders.Google('ABQIAAAAsQaqY0-yP0Cw0WzbSekm5BT296BgfLethFmtEh-hT7Sddrf7hRRIpkbeIt_zXynfagkQDsn_8r1pWQ')
	point = (lat,lng)
	(new_place,new_point)=g.reverse(point)
	return smart_str(new_place,encoding='utf-8',strings_only=False,errors='strict')
