diff options
| author | Luc Donnet | 2018-03-19 15:31:17 +0100 | 
|---|---|---|
| committer | Luc Donnet | 2018-03-19 15:31:17 +0100 | 
| commit | 176149726e5292568bec9d0d02bf3370fa2fb7a3 (patch) | |
| tree | eda7fc7fb428f9e92c500575aa9ce04a52d0b37c /lib/stif | |
| parent | 9cb93b30946174e46ea6cb80be7ea8a8b61d0776 (diff) | |
| download | chouette-core-176149726e5292568bec9d0d02bf3370fa2fb7a3.tar.bz2 | |
Fix coordinates synchronization for reflex Refs #6245
Diffstat (limited to 'lib/stif')
| -rw-r--r-- | lib/stif/reflex_synchronization.rb | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/lib/stif/reflex_synchronization.rb b/lib/stif/reflex_synchronization.rb index 202446da3..508d28b40 100644 --- a/lib/stif/reflex_synchronization.rb +++ b/lib/stif/reflex_synchronization.rb @@ -159,10 +159,13 @@ module Stif            zip_code:       'PostalRegion',            city_name:      'Town',            stif_type:      'OBJECT_STATUS', -          longitude: (entry['gml:pos'] && entry['gml:pos'][:lng]) ? entry['gml:pos'][:lng] : nil, -          latitude: (entry['gml:pos'] && entry['gml:pos'][:lat]) ? entry['gml:pos'][:lat] : nil          }.each do |k, v| stop[k] = entry[v] end +        if entry['gml:pos'] +          stop['longitude'] = entry['gml:pos'][:lng] +          stop['latitude']  = entry['gml:pos'][:lat] +        end +          stop.kind = :commercial          stop.deleted_at            = nil          stop.confirmed_at = Time.now if stop.new_record? | 
