Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
JoinTheCity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafal
JoinTheCity
Commits
2eb45a48
Commit
2eb45a48
authored
Jan 17, 2016
by
Dominik Rosiek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adresy
parent
3d395a34
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
0 deletions
+32
-0
apteki.py
JoinTheCityREST/lib/api/apteki.py
+8
-0
baseny.py
JoinTheCityREST/lib/api/baseny.py
+8
-0
hotele.py
JoinTheCityREST/lib/api/hotele.py
+8
-0
szpitale.py
JoinTheCityREST/lib/api/szpitale.py
+8
-0
No files found.
JoinTheCityREST/lib/api/apteki.py
View file @
2eb45a48
...
@@ -31,4 +31,12 @@ class API(BaseAPI):
...
@@ -31,4 +31,12 @@ class API(BaseAPI):
result
[
'latitude'
]
=
property
[
'value'
]
result
[
'latitude'
]
=
property
[
'value'
]
elif
property
[
'key'
]
==
'OADR_GPS_D'
:
elif
property
[
'key'
]
==
'OADR_GPS_D'
:
result
[
'longitude'
]
=
property
[
'value'
]
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
return
result
JoinTheCityREST/lib/api/baseny.py
View file @
2eb45a48
...
@@ -31,4 +31,12 @@ class API(BaseAPI):
...
@@ -31,4 +31,12 @@ class API(BaseAPI):
result
[
'latitude'
]
=
property
[
'value'
]
result
[
'latitude'
]
=
property
[
'value'
]
elif
property
[
'key'
]
==
'OADR_GPS_D'
:
elif
property
[
'key'
]
==
'OADR_GPS_D'
:
result
[
'longitude'
]
=
property
[
'value'
]
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
return
result
JoinTheCityREST/lib/api/hotele.py
View file @
2eb45a48
...
@@ -31,4 +31,12 @@ class API(BaseAPI):
...
@@ -31,4 +31,12 @@ class API(BaseAPI):
result
[
'latitude'
]
=
property
[
'value'
]
result
[
'latitude'
]
=
property
[
'value'
]
elif
property
[
'key'
]
==
'OADR_GPS_D'
:
elif
property
[
'key'
]
==
'OADR_GPS_D'
:
result
[
'longitude'
]
=
property
[
'value'
]
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
return
result
JoinTheCityREST/lib/api/szpitale.py
View file @
2eb45a48
...
@@ -31,4 +31,12 @@ class API(BaseAPI):
...
@@ -31,4 +31,12 @@ class API(BaseAPI):
result
[
'latitude'
]
=
property
[
'value'
]
result
[
'latitude'
]
=
property
[
'value'
]
elif
property
[
'key'
]
==
'OADR_GPS_D'
:
elif
property
[
'key'
]
==
'OADR_GPS_D'
:
result
[
'longitude'
]
=
property
[
'value'
]
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
return
result
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment