diff --git a/aequilibrae/parameters.yml b/aequilibrae/parameters.yml index d7fe1be3e..3cc508227 100644 --- a/aequilibrae/parameters.yml +++ b/aequilibrae/parameters.yml @@ -138,7 +138,6 @@ network: - pedestrian - bridleway - elevator - - motor - trunk - tertiary - service @@ -149,84 +148,116 @@ network: - abandoned - platform - unclassified + - via_ferrata + - busway modes: bicycle: link_types: + - secondary_link + - trail + - cycleway + - trunk_link + - secondary + - escape + - track + - road - primary + - residential + - footway - primary_link - - secondary - - secondary_link - - tertiary + - unclassified - tertiary_link - living_street - - residential - - cycleway - - corridor - pedestrian - - path - - track - - trail + - elevator + - tertiary + - service + - proposed + - construction - unclassified mode_filter: bicycle: 'no' unknown_tags: true car: link_types: - - motor - - motorway - - trunk - - primary + - secondary_link + - trunk_link - secondary - - tertiary - - unclassified - - residential + - escape + - road - motorway_link - - trunk_link + - primary + - residential + - motorway - primary_link - - secondary_link + - unclassified - tertiary_link - living_street + - pedestrian + - bridleway + - trunk + - tertiary - service - - escape - - road + - construction + - unclassified mode_filter: motor_vehicle: 'no' unknown_tags: true transit: link_types: - - motor - - motorway - - trunk - - primary + - secondary_link + - trunk_link - secondary - - tertiary - - unclassified - - residential + - escape + - road - motorway_link - - trunk_link + - primary + - residential + - motorway - primary_link - - secondary_link + - unclassified - tertiary_link - living_street + - pedestrian + - bridleway + - trunk + - tertiary - service - - escape - - road + - construction + - unclassified - bus_guideway + - busway unknown_tags: true walk: link_types: - - cycleway - - footway - - steps - - corridor - - pedestrian - - elevator + - secondary_link - escalator + - trail + - cycleway - path + - trunk_link + - secondary + - escape - track - - trail + - road + - primary + - corridor + - residential + - footway + - primary_link + - unclassified + - tertiary_link + - living_street + - pedestrian - bridleway + - elevator + - tertiary + - service + - steps + - proposed + - construction - unclassified + - via_ferrata mode_filter: pedestrian: 'no' unknown_tags: true diff --git a/aequilibrae/project/database_specification/network/triggers/network_triggers.sql b/aequilibrae/project/database_specification/network/triggers/network_triggers.sql index b1be84831..a50b0e648 100644 --- a/aequilibrae/project/database_specification/network/triggers/network_triggers.sql +++ b/aequilibrae/project/database_specification/network/triggers/network_triggers.sql @@ -112,10 +112,10 @@ create trigger new_link after insert on links set b_node = ( select node_id from nodes - where nodes.geometry = EndPoint(links.geometry) and + where nodes.geometry = EndPoint(new.geometry) and (nodes.rowid in ( select rowid from SpatialIndex where f_table_name = 'nodes' and - search_frame = EndPoint(links.geometry)) or + search_frame = EndPoint(new.geometry)) or nodes.node_id = new.b_node)) where links.rowid = new.rowid; update links @@ -160,10 +160,10 @@ create trigger updated_link_geometry after update of geometry on links set b_node = ( select node_id from nodes - where nodes.geometry = EndPoint(links.geometry) and + where nodes.geometry = EndPoint(new.geometry) and (nodes.rowid in ( select rowid from SpatialIndex where f_table_name = 'nodes' and - search_frame = EndPoint(links.geometry)) or + search_frame = EndPoint(new.geometry)) or nodes.node_id = new.b_node)) where links.rowid = new.rowid; update links