forked from kamba4/sunders
moved files into subdirs
This commit is contained in:
parent
bf6ccf5094
commit
10fcf55b10
242 changed files with 23 additions and 0 deletions
4
data_handler_python/Containerfile
Normal file
4
data_handler_python/Containerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM quay.io/fedora/fedora-minimal:43
|
||||
RUN microdnf install -y python-pip && microdnf clean all && pip install OSMPythonTools
|
||||
|
||||
COPY ./lookup_country.py /opt/
|
7
data_handler_python/lookup_country.py
Normal file
7
data_handler_python/lookup_country.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from OSMPythonTools.nominatim import Nominatim
|
||||
|
||||
|
||||
nominatim = Nominatim()
|
||||
heidelberg = nominatim.query(49.4093582, 8.694724, reverse=True, zoom=10)
|
||||
|
||||
print(heidelberg.address()['country_code'])
|
12
data_handler_python/test.py
Normal file
12
data_handler_python/test.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
|
||||
import xml.etree.cElementTree as ET
|
||||
import gzip
|
||||
import requests
|
||||
|
||||
r = requests.get('https://planet.openstreetmap.org/replication/minute/000/000/001.osc.gz')
|
||||
|
||||
data = gzip.decompress(r.content)
|
||||
|
||||
tree = ET.fromstring(data)
|
||||
print(tree.findall("./."))
|
Loading…
Add table
Add a link
Reference in a new issue