diff options
| author | Luc Donnet | 2017-03-22 13:33:45 +0100 |
|---|---|---|
| committer | Luc Donnet | 2017-03-22 13:33:45 +0100 |
| commit | 2180ec2f1f4cb69bf5d3ba9f3c757d0141cab755 (patch) | |
| tree | e008f8f0f7c63bb7ff94791225af3c77d4d96d3a /lib | |
| parent | 78e0ef962354b9cd3e6dfb51a2ccf8ed6fe5afaf (diff) | |
| parent | 840241c12211a5e46e5c38cc2007339d9e00c02f (diff) | |
| download | chouette-core-2180ec2f1f4cb69bf5d3ba9f3c757d0141cab755.tar.bz2 | |
Merge branch 'master' into staging
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/stif/reflex_synchronization.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/stif/reflex_synchronization.rb b/lib/stif/reflex_synchronization.rb index 68f7fc621..fee54f4c1 100644 --- a/lib/stif/reflex_synchronization.rb +++ b/lib/stif/reflex_synchronization.rb @@ -71,12 +71,15 @@ module Stif end def stop_area_area_type entry, method + from = method.last + from = 'r' if entry['OBJECT_STATUS'] == 'REFERENCE_OBJECT' + from = 'p' if entry['OBJECT_STATUS'] == 'LOCAL_OBJECT' + type = entry['TypeOfPlaceRef'] + if entry['type'] == 'Quay' - type = 'zder' if entry['OBJECT_STATUS'] == 'REFERENCE_OBJECT' - type = 'zdep' if entry['OBJECT_STATUS'] == 'LOCAL_OBJECT' + type = "zde#{from}" else - type = entry['TypeOfPlaceRef'] - type = "#{type.to_s}#{method.last}" unless type == 'LDA' + type = "zdl#{from}" if type != 'LDA' end type.downcase end |
