Commit 2eb45a48 authored by Dominik Rosiek's avatar Dominik Rosiek

adresy

parent 3d395a34
......@@ -31,4 +31,12 @@ class API(BaseAPI):
result['latitude'] = property['value']
elif property['key'] == 'OADR_GPS_D':
result['longitude'] = property['value']
elif property['key'] == 'OADR_MIASTO':
result['city'] = property['value']
elif property['key'] == 'OADR_ULICA':
result['street'] = property['value']
elif property['key'] == 'OADR_NR':
result['nr'] = property['value']
result['address'] = "{0} {1}, {2}".format(result['street'], result['nr'], result['city'])
return result
......@@ -31,4 +31,12 @@ class API(BaseAPI):
result['latitude'] = property['value']
elif property['key'] == 'OADR_GPS_D':
result['longitude'] = property['value']
elif property['key'] == 'OADR_MIASTO':
result['city'] = property['value']
elif property['key'] == 'OADR_ULICA':
result['street'] = property['value']
elif property['key'] == 'OADR_NR':
result['nr'] = property['value']
result['address'] = "{0} {1}, {2}".format(result['street'], result['nr'], result['city'])
return result
......@@ -31,4 +31,12 @@ class API(BaseAPI):
result['latitude'] = property['value']
elif property['key'] == 'OADR_GPS_D':
result['longitude'] = property['value']
elif property['key'] == 'OADR_MIASTO':
result['city'] = property['value']
elif property['key'] == 'OADR_ULICA':
result['street'] = property['value']
elif property['key'] == 'OADR_NR':
result['nr'] = property['value']
result['address'] = "{0} {1}, {2}".format(result['street'], result['nr'], result['city'])
return result
......@@ -31,4 +31,12 @@ class API(BaseAPI):
result['latitude'] = property['value']
elif property['key'] == 'OADR_GPS_D':
result['longitude'] = property['value']
elif property['key'] == 'OADR_MIASTO':
result['city'] = property['value']
elif property['key'] == 'OADR_ULICA':
result['street'] = property['value']
elif property['key'] == 'OADR_NR':
result['nr'] = property['value']
result['address'] = "{0} {1}, {2}".format(result['street'], result['nr'], result['city'])
return result
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment