Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libraries
KPublicTransport
Commits
cb34262f
Commit
cb34262f
authored
Sep 08, 2021
by
Volker Krause
Browse files
Fix GeoJSON conversion for journey sections without paths
parent
ed3bd94c
Pipeline
#79476
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/tools/journey2geojson.py
View file @
cb34262f
...
...
@@ -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>'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment