Class: ScoringFeatures

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/geocoder_types.rb

Constant Summary collapse

POPULATION =
1
BOOST =
2
PARENTIDS =
6
CANGEOCODE =
5
HASPOLY =
7
EXTRARELATIONIDS =
8
DEPRECATED_PARENTS =
3
FIELDS =
{
  POPULATION => {:type => ::Thrift::Types::I32, :name => 'population', :default => 0, :optional => true},
  BOOST => {:type => ::Thrift::Types::I32, :name => 'boost', :default => 0, :optional => true},
  PARENTIDS => {:type => ::Thrift::Types::LIST, :name => 'parentIds', :default => [
  ], :element => {:type => ::Thrift::Types::I64}, :optional => true},
  CANGEOCODE => {:type => ::Thrift::Types::BOOL, :name => 'canGeocode', :default => true, :optional => true},
  HASPOLY => {:type => ::Thrift::Types::BOOL, :name => 'hasPoly', :default => false, :optional => true},
  EXTRARELATIONIDS => {:type => ::Thrift::Types::LIST, :name => 'extraRelationIds', :default => [
  ], :element => {:type => ::Thrift::Types::I64}, :optional => true},
  DEPRECATED_PARENTS => {:type => ::Thrift::Types::LIST, :name => 'DEPRECATED_parents', :default => [
  ], :element => {:type => ::Thrift::Types::STRING}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



284
# File 'lib/thrift/geocoder_types.rb', line 284

def struct_fields; FIELDS; end

#validateObject



286
287
# File 'lib/thrift/geocoder_types.rb', line 286

def validate
end