mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
10 lines
178 B
Ruby
10 lines
178 B
Ruby
class Way < ActiveRecord::Base
|
|
has_many :nodes
|
|
|
|
def bbox=(bbox)
|
|
# counting from left, counter-clockwise
|
|
self.lon1,self.lat2,self.lon2,self.lat1 = bbox
|
|
end
|
|
|
|
end
|