Sha256: 0edf11ab3a690e26029ba497c31003d8bac66357c822c9316ebe027851926ac1

Contents?: true

Size: 841 Bytes

Versions: 6

Compression:

Stored size: 841 Bytes

Contents

require 'mida/vocabulary'

module Mida
  module SchemaOrg

    autoload :Thing, 'mida/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

6 entries across 6 versions & 1 rubygems

Version Path
mida-0.4.0 lib/mida/vocabularies/schemaorg/geocoordinates.rb
mida-0.3.9 lib/mida/vocabularies/schemaorg/geocoordinates.rb
mida-0.3.8 lib/mida/vocabularies/schemaorg/geocoordinates.rb
mida-0.3.7 lib/mida/vocabularies/schemaorg/geocoordinates.rb
mida-0.3.6 lib/mida/vocabularies/schemaorg/geocoordinates.rb
mida-0.3.3 lib/mida/vocabularies/schemaorg/geocoordinates.rb