Class: Placemaker::Extents

Inherits:
Object
  • Object
show all
Includes:
XmlHelper
Defined in:
lib/placemaker/extents.rb

Overview

container for the the map extents covering the places mentioned in the document

Instance Method Summary collapse

Methods included from XmlHelper

#initialize

Instance Method Details

#centerObject

coordinates of center (WGS84)



8
9
10
# File 'lib/placemaker/extents.rb', line 8

def center
  Placemaker::Coordinates.new(@nodeset.search('.//xmlns:center', 'xmlns' => 'http://wherein.yahooapis.com/v1/schema'))
end

#north_eastObject

coordinates of northeast corner of bounding box (WGS84)



18
19
20
# File 'lib/placemaker/extents.rb', line 18

def north_east
  Placemaker::Coordinates.new(@nodeset.search('.//xmlns:northEast', 'xmlns' => 'http://wherein.yahooapis.com/v1/schema'))
end

#south_westObject

coordinates of southwest corner of bounding box (WGS84)



13
14
15
# File 'lib/placemaker/extents.rb', line 13

def south_west
  Placemaker::Coordinates.new(@nodeset.search('.//xmlns:southWest', 'xmlns' => 'http://wherein.yahooapis.com/v1/schema'))
end