Class: GtfsDf::Schema::Shapes

Inherits:
BaseGtfsTable show all
Defined in:
lib/gtfs_df/schema/shapes.rb

Constant Summary collapse

SCHEMA =
{
  "shape_id" => Polars::String,
  "shape_pt_lat" => Polars::Float64,
  "shape_pt_lon" => Polars::Float64,
  "shape_pt_sequence" => Polars::Int64,
  "shape_dist_traveled" => Polars::Float64
}.freeze
REQUIRED_FIELDS =
%w[
  shape_id
  shape_pt_lat
  shape_pt_lon
  shape_pt_sequence
].freeze

Instance Attribute Summary

Attributes inherited from BaseGtfsTable

#df, #validator

Method Summary

Methods inherited from BaseGtfsTable

#dataframe, empty_dataframe, #errors, #fields, #initialize, time_fields, #valid?

Constructor Details

This class inherits a constructor from GtfsDf::BaseGtfsTable