Sha256: cfc20a4deb91f69a1476872b3b7b17e0055c1df8ce040fd162bedb70ecdec147

Contents?: true

Size: 437 Bytes

Versions: 18

Compression:

Stored size: 437 Bytes

Contents

class Chouette::Geometry::RoutePresenter
  include Chouette::Geometry::GeneralPresenter

  def initialize(route)
    @route = route
  end

  # return route's stop_areas cloud geometry
  #
  def stop_areas_geometry
    to_multi_point_feature( @route.stop_areas.with_geometry )
  end

  # return route geometry based on BoardingPosition or Quay
  #
  def geometry
    to_line_string_feature( @route.stop_areas.with_geometry )
  end


end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ninoxe-1.2.3 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.2.2 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.2.1 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.2.0 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.1.5 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.1.4 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.1.3 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.1.2 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.1.1 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.1.0 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.0.3 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.0.2 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.0.1 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-1.0.0 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-0.1.6 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-0.1.5 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-0.1.4 app/presenters/chouette/geometry/route_presenter.rb
ninoxe-0.1.3 app/presenters/chouette/geometry/route_presenter.rb