new method /lookup.php - Reverse search by multiple osm ids

This commit is contained in:
Marc Tobias Metten
2015-06-16 21:11:21 +02:00
parent 1fcb712f00
commit 7c8c206818
8 changed files with 125 additions and 4 deletions

View File

@@ -123,6 +123,13 @@ def api_setup_details(step, obj):
world.params['place_id'] = obj
api_call('details')
@step(u'looking up (\w+) places ((?:[a-z]\d+,*)+)')
def api_setup_lookup(step, fmt, ids):
world.params['osm_ids'] = ids
if fmt and fmt.strip():
world.params['format'] = fmt.strip()
api_call('lookup')
@step(u'sending an API call (\w+)')
def api_general_call(step, call):
api_call(call)