Include more detail in OSM tags API call
This commit is contained in:
parent
c404c9a752
commit
22cfe64896
2 changed files with 30 additions and 26 deletions
|
|
@ -284,12 +284,14 @@ def api_osm_objects():
|
|||
def api_get_item_tags(item_id):
|
||||
t0 = time()
|
||||
item = model.Item.query.get(item_id)
|
||||
osm_list = api.get_item_tags(item)
|
||||
tags = api.get_item_tags(item)
|
||||
osm_list = sorted(tags.keys())
|
||||
t1 = time() - t0
|
||||
|
||||
return cors_jsonify(success=True,
|
||||
qid=item.qid,
|
||||
tag_or_key_list=osm_list,
|
||||
tag_src=tags,
|
||||
duration=t1)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue