Skip to content

Commit

Permalink
Code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
saleem-latif committed Jan 22, 2016
1 parent c049b3b commit ee1fadf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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](https://virtualenv.readthedocs.org/en/latest/userguide.html).
* install requirements `pip install -r geocode/requirements.txt`
* run tests `python geocode/tests/unittest_geocode.py`

__Example Usage:__

`geo_code = GeoCodeAccessAPI(address="Sydney, NSW")`
Expand All @@ -16,7 +25,3 @@ __Accessing latitude/longitude or Address:__
`lng = geo_code.lng`

`address = geo_code.address`

Note:
Code need to be tested and documented properly.

File renamed without changes.
4 changes: 2 additions & 2 deletions geocode/geocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from xml.etree import ElementTree

from constants import geo_code_url, parameter_names_map, STATUS_OK, STATUS_UNKNOWN, google_geocode_response_tags
from geocode_exceptions import APIError
from helper_functions import encode_geocode_url
from exceptions import APIError
from helpers import encode_geocode_url


class GeoCode(object):
Expand Down
File renamed without changes.

0 comments on commit ee1fadf

Please sign in to comment.