We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 670878b + 6b4ebf3 commit 73c403eCopy full SHA for 73c403e
pyPostcode/__init__.py
@@ -13,7 +13,7 @@
13
import logging
14
15
16
-__version__ = '0.3'
+__version__ = '0.4'
17
18
19
class pyPostcodeException(Exception):
@@ -160,13 +160,13 @@ def _get_geo_coordinates(self, geo_type):
160
def latitude(self):
161
if self._data.get('latitude'):
162
return self._data.get('latitude')
163
- return self._get_geo_coordinates('wgs84')[0]
+ return self._get_geo_coordinates('wgs84')[1]
164
165
@property
166
def longitude(self):
167
if self._data.get('longitude'):
168
return self._data.get('longitude')
169
- return self._get_geo_coordinates('wgs84')[1]
+ return self._get_geo_coordinates('wgs84')[0]
170
171
172
def x(self):
0 commit comments