Skip to content

Commit

Permalink
Add way in result of analyser_osmosis_highway_traffic_signals osm-fr#360
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Nov 3, 2018
1 parent b59aa95 commit 982c1b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions analysers/analyser_osmosis_highway_traffic_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
sql30 = """
SELECT
nodes.id,
max(ways.id),
ST_AsText(nodes.geom)
FROM
{0}traffic_signals AS nodes
Expand Down Expand Up @@ -130,6 +131,7 @@
sql41 = """
SELECT
nodes.id,
max(ways.id),
ST_AsText(nodes.geom)
FROM
{0}stops AS nodes
Expand Down Expand Up @@ -164,11 +166,11 @@ def __init__(self, config, logger = None):
[{"+":{"crossing":"traffic_signals"}}, {"-":["crossing"]}]
] }
self.callback20 = lambda res: {"class":2, "data":[self.node_full, self.positionAsText]}
self.callback30 = lambda res: {"class":3, "data":[self.node_full, self.positionAsText], "fix":[
self.callback30 = lambda res: {"class":3, "data":[self.node_full, self.way, self.positionAsText], "fix":[
[{"+":{"traffic_signals:direction":"forward"}}],
[{"+":{"traffic_signals:direction":"backward"}}],
] }
self.callback40 = lambda res: {"class":4, "data":[self.node_full, self.positionAsText], "fix":[
self.callback40 = lambda res: {"class":4, "data":[self.node_full, self.way, self.positionAsText], "fix":[
[{"+":{"direction":"forward"}}],
[{"+":{"direction":"backward"}}],
] }
Expand Down

0 comments on commit 982c1b4

Please sign in to comment.