Sha256: ddce3c747e62d87851eeb06e7740e1ab54f1cc53eb28119e485413e487790578

Contents?: true

Size: 863 Bytes

Versions: 5

Compression:

Stored size: 863 Bytes

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'

    # The geographic coordinates of a place or event.
    class GeoCoordinates < Mida::Vocabulary
      itemtype %r{http://schema.org/GeoCoordinates}i
      include_vocabulary Mida::SchemaOrg::Thing

      # The elevation of a location.
      has_many 'elevation' do
        extract Mida::DataType::Number
        extract Mida::DataType::Text
      end

      # The latitude of a location. For example 37.42242.
      has_many 'latitude' do
        extract Mida::DataType::Number
        extract Mida::DataType::Text
      end

      # The longitude of a location. For example -122.08585.
      has_many 'longitude' do
        extract Mida::DataType::Number
        extract Mida::DataType::Text
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mida_vocabulary-0.2.2 lib/mida_vocabulary/vocabularies/schemaorg/geocoordinates.rb
mida_vocabulary-0.1.3 lib/mida_vocabulary/vocabularies/schemaorg/geocoordinates.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/schemaorg/geocoordinates.rb
mida_vocabulary-0.1.1 lib/mida_vocabulary/vocabularies/schemaorg/geocoordinates.rb
mida_vocabulary-0.1 lib/mida_vocabulary/vocabularies/schemaorg/geocoordinates.rb