Python wrapper for google's geoode REST API
GeoCode allows you to retrieve latitude longitude for an address or vice versa.
Setup:
Follow these steps to setup GeoCode locally.
- Clone GeoCode repository
git clone https://github.com/saleem-latif/GeoCode.git
- Create and activate virtual environment.
- install requirements
pip install -r geocode/requirements.txt
- run tests
python geocode/tests/unittest_geocode.py
Example Usage:
geo_code = GeoCodeAccessAPI(address="Sydney, NSW")
Accessing latitude/longitude or Address:
lat = geo_code.lat
lng = geo_code.lng
address = geo_code.address