Skip to content

Commit 729cd8d

Browse files
authored
Merge pull request #1 from johtoblan/python3
Update to python3 and remove docutils-testing
2 parents f31e613 + e901a6c commit 729cd8d

17 files changed

+81
-121
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Setup/Install
2+
*.egg-info
3+
build/
4+
__pycache__/

Geohash.egg-info/PKG-INFO

Lines changed: 0 additions & 12 deletions
This file was deleted.

Geohash.egg-info/SOURCES.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

Geohash.egg-info/dependency_links.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

Geohash.egg-info/requires.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

Geohash.egg-info/top_level.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.rst

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,85 @@
11
=======
2-
Geohash
2+
geohash
33
=======
44

5-
Geohash is a Python module that provides functions for decoding and
6-
encoding Geohashes_ to and from latitude and longitude coordinates.
5+
geohash is a Python module that provides functions for decoding and
6+
encoding geohashes_ to and from latitude and longitude coordinates.
77

88
Example::
99

10-
>>> import Geohash
11-
>>> print 'Geohash for 42.6, -5.6:', Geohash.encode(42.6, -5.6)
12-
Geohash for 42.6, -5.6: ezs42e44yx96
10+
>>> import geohash
11+
>>> print ('geohash for 42.6, -5.6:', geohash.encode(42.6, -5.6))
12+
geohash for 42.6, -5.6: ezs42e44yx96
1313

1414
You can specify an arbitrary precision when encoding. The precision
15-
determines the number of characters in the Geohash::
15+
determines the number of characters in the geohash::
1616

17-
>>> print 'Geohash for 42.6, -5.6:', Geohash.encode(42.6, -5.6, precision=5)
18-
Geohash for 42.6, -5.6: ezs42
17+
>>> print ('geohash for 42.6, -5.6:', geohash.encode(42.6, -5.6, precision=5))
18+
geohash for 42.6, -5.6: ezs42
1919

20-
Decoding a Geohash returns a (latitude, longitude) tuple::
20+
Decoding a geohash returns a (latitude, longitude) tuple::
2121

22-
>>> print 'Coordinate for Geohash ezs42:', Geohash.decode('ezs42')
23-
Coordinate for Geohash ezs42: ('42.6', '-5.6')
22+
>>> print ('Coordinate for geohash ezs42:', geohash.decode('ezs42'))
23+
Coordinate for geohash ezs42: ('42.6', '-5.6')
2424

25-
The Geohash module also provides exact decoding with error margin
25+
The geohash module also provides exact decoding with error margin
2626
results. The decode_exactly function returns a tuple of four float
2727
values; latitude, longitude, latitude error margin, longitude error
2828
margin::
2929

30-
>>> print 'Exact coordinate for Geohash ezs42:\n', Geohash.decode_exactly('ezs42')
31-
Exact coordinate for Geohash ezs42:
30+
>>> print ('Exact coordinate for geohash ezs42:\n', geohash.decode_exactly('ezs42'))
31+
Exact coordinate for geohash ezs42:
3232
(42.60498046875, -5.60302734375, 0.02197265625, 0.02197265625)
3333

3434
The last two values are the plus/minus error margin of the latitude
3535
and longitude respectively. In this particular case the error margins
3636
happen to be the same for both the latitude and the longitude, but
37-
this is just a co-incidence due to the precision of the Geohash and
37+
this is just a co-incidence due to the precision of the geohash and
3838
thus the number of bits used for the latitude and longitude encoding,
3939
respectively.
4040

4141
Download
4242
========
4343

44-
Geohash is available for download from github_ and from the `Python Package Index`_.
44+
geohash is available for download from github_ and from the `Python Package Index`_.
4545

4646
License
4747
=======
4848

4949
Copyright (C) 2008 Leonard Norrgard <leonard.norrgard@gmail.com>
5050
Copyright (C) 2015 Leonard Norrgard <leonard.norrgard@gmail.com>
5151

52-
Geohash is free software: you can redistribute it and/or modify it
52+
geohash is free software: you can redistribute it and/or modify it
5353
under the terms of the GNU Affero General Public License as published
5454
by the Free Software Foundation, either version 3 of the License, or
5555
(at your option) any later version.
5656

57-
Geohash is distributed in the hope that it will be useful, but WITHOUT
57+
geohash is distributed in the hope that it will be useful, but WITHOUT
5858
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5959
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
6060
License for more details.
6161

6262
You should have received a copy of the GNU Affero General Public
63-
License along with Geohash. If not, see
63+
License along with geohash. If not, see
6464
<http://www.gnu.org/licenses/>.
6565

6666
History
6767
=======
6868

69-
The Geohash encoding was originally described by Gustavo Niemeyer and
70-
the algorithm published in the Wikipedia Geohash_ article.
69+
The geohash encoding was originally described by Gustavo Niemeyer and
70+
the algorithm published in the Wikipedia geohash_ article.
7171

72-
This implementation of Geohashes was written by Leonard Norrgard
72+
This implementation of geohashes was written by Leonard Norrgard
7373
<leonard.norrgard@gmail.com>.
7474

7575
Keywords
7676
========
7777

78-
Geohash, GIS, latitude, longitude, encode, decode, Galileo, GPS, WGS84, coordinates, geotagging.
78+
geohash, GIS, latitude, longitude, encode, decode, Galileo, GPS, WGS84, coordinates, geotagging.
7979

80-
.. _Geohashes: http://en.wikipedia.org/wiki/Geohash
81-
.. _github: https://github.com/vinsci/geohash/archive/master.zip
80+
.. _geohashes: http://en.wikipedia.org/wiki/geohash
8281
.. _Python package index: http://pypi.python.org
83-
.. _Geohash: http://en.wikipedia.org/wiki/Geohash
82+
.. _geohash: http://en.wikipedia.org/wiki/geohash
8483

8584
.. Local Variables:
8685
.. mode:rst

dist/Geohash-1.0.tar.gz

-15 KB
Binary file not shown.

dist/Geohash-1.0rc1-py2.4.egg

-6.05 KB
Binary file not shown.

0 commit comments

Comments
 (0)