Commit cb34262f authored by Volker Krause's avatar Volker Krause
Browse files

Fix GeoJSON conversion for journey sections without paths

parent ed3bd94c
Pipeline #79476 passed with stage
in 17 seconds
......@@ -26,6 +26,8 @@ inJson = json.load(inFile)
for journey in inJson:
for section in journey['sections']:
if not 'path' in section:
continue
for path in section['path']['sections']:
properties = {}
properties['name'] = path.get('description', '<anonymous>')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment