Skip to content

Commit

Permalink
Fix for #26
Browse files Browse the repository at this point in the history
  • Loading branch information
thampiman committed Sep 15, 2016
1 parent cd52eda commit e723bf7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Reverse Geocoder
=================
A Python library for offline reverse geocoding. It improves on an existing library called [reverse_geocode](https://pypi.python.org/pypi/reverse_geocode/1.0) developed by [Richard Penman](https://bitbucket.org/richardpenman/reverse_geocode).

*UPDATE (15-Sep-16)*: v1.5 released! See release notes below.
*UPDATE (15-Sep-16)*: v1.5.1 released! See release notes below.

### About
Ajay Thampi | [@thampiman](https://twitter.com/thampiman) | [opensignal.com](http://opensignal.com) | [ajaythampi.com](http://ajaythampi.com)
Expand Down Expand Up @@ -46,6 +46,7 @@ Package can be found on [PyPI](https://pypi.python.org/pypi/reverse_geocoder/).
4. v1.3 (11-Apr-15) - This release fixes issues [#9](https://github.com/thampiman/reverse-geocoder/issues/9), [#10](https://github.com/thampiman/reverse-geocoder/issues/10), [#11](https://github.com/thampiman/reverse-geocoder/issues/11) and [#12](https://github.com/thampiman/reverse-geocoder/issues/12). License has been changed from MIT to LGPL (see [#12](https://github.com/thampiman/reverse-geocoder/issues/12)).
5. v1.4 (08-Jul-16) - Included numpy and scipy as dependencies in setup.
6. v1.5 (15-Sep-16) - Support for custom data source and fixes for issues [#16](https://github.com/thampiman/reverse-geocoder/issues/16) and [#24](https://github.com/thampiman/reverse-geocoder/issues/24). Hat tip to [Jason](https://github.com/swails) and [Gregoire](https://github.com/geekingfrog).
7. v1.5.1 (15-Sep-16) - Fix for [#26](https://github.com/thampiman/reverse-geocoder/issues/26).

## Usage
The library supports two modes:
Expand Down
Binary file added dist/reverse_geocoder-1.5.1.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions reverse_geocoder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ def singleton(cls):
Function to get single instance of the RGeocoder class
"""
instances = {}
def getinstance(mode=2, verbose=True, stream=None):
def getinstance(**kwargs):
"""
Creates a new RGeocoder instance if not created already
"""
if cls not in instances:
instances[cls] = cls(mode=mode, verbose=verbose, stream=stream)
instances[cls] = cls(**kwargs)
return instances[cls]
return getinstance

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def finalize_options(self):
self.include_dirs.append(numpy.get_include())

setup(name='reverse_geocoder',
version='1.5',
version='1.5.1',
author='Ajay Thampi',
author_email='ajay.thampi@gmail.com',
url='https://github.com/thampiman/reverse-geocoder',
Expand Down

0 comments on commit e723bf7

Please sign in to comment.