Class: CTA::Shape
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- CTA::Shape
- Defined in:
- lib/cta_redux/models/shape.rb
Overview
Note:
Current columns: [:shape_id, :shape_pt_lat, :shape_pt_lon, :shape_pt_sequence, :shape_dist_traveled]
A Sequel::Model. This corresponds to routes.txt in the GTFS feed, though the CTA does not fully implement the standard.
Instance Method Summary collapse
- #shape_dist_traveled ⇒ Integer (also: #distance, #distance_traveled)
- #shape_id ⇒ Integer (also: #id)
- #shape_pt_lat ⇒ Float (also: #lat)
- #shape_pt_lon ⇒ Float (also: #lon)
- #shape_pt_sequence ⇒ Integer (also: #sequence)
Instance Method Details
#shape_dist_traveled ⇒ Integer Also known as: distance, distance_traveled
17 |
# File 'lib/cta_redux/models/shape.rb', line 17 alias_method :id, :shape_id |
#shape_id ⇒ Integer Also known as: id
17 |
# File 'lib/cta_redux/models/shape.rb', line 17 alias_method :id, :shape_id |
#shape_pt_lat ⇒ Float Also known as: lat
17 |
# File 'lib/cta_redux/models/shape.rb', line 17 alias_method :id, :shape_id |
#shape_pt_lon ⇒ Float Also known as: lon
17 |
# File 'lib/cta_redux/models/shape.rb', line 17 alias_method :id, :shape_id |
#shape_pt_sequence ⇒ Integer Also known as: sequence
17 |
# File 'lib/cta_redux/models/shape.rb', line 17 alias_method :id, :shape_id |