hallo deets
viellen dank!!!
Code: Alles auswählen
linux-jnmx:~ # pip install overpass
Collecting overpass
Downloading overpass-0.5.6.tar.gz
Requirement already satisfied (use --upgrade to upgrade): requests>=2.3.0 in /usr/lib/python3.4/site-packages (from overpass)
Collecting geojson>=1.0.9 (from overpass)
Downloading geojson-2.3.0-py2.py3-none-any.whl
Installing collected packages: geojson, overpass
Running setup.py install for overpass
Successfully installed geojson-2.3.0 overpass-0.5.6
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
linux-jnmx:~ #
jetzt läufts
Code: Alles auswählen
linux-jnmx:~ # pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 217kB/s
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
Successfully installed pip-9.0.1
linux-jnmx:~ #
wenn ich nun jetzt das Beispiel durchspiele - hier
https://github.com/mvexel/overpass-api-python-wrapper
dann geb ich untenstehenden code in eric in die ide ein ;
Code: Alles auswählen
import overpass
api = overpass.API()
response = api.Get('node["name"="Salt Lake City"]')
- es sollte - wie oben auf der Page hier vermerkt ist
https://github.com/mvexel/overpass-api-python-wrapper
folgendes Ergebnis zeitigen - ...:;
Code: Alles auswählen
print [(feature['tags']['name'], feature['id']) for feature in response['elements']]
[(u'Salt Lake City', 150935219), (u'Salt Lake City', 585370637), (u'Salt Lake City', 1615721573)]
das funktioniert nicht -
mache ich hier etwas falsch!?
vg