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)



10
11
12
# File 'lib/placemaker/extents.rb', line 10

def center
  Placemaker::Coordinates.new(@nodeset.search('.//xmlns:center'))
end

#north_eastObject

coordinates of northeast corner of bounding box (WGS84)



20
21
22
# File 'lib/placemaker/extents.rb', line 20

def north_east
  Placemaker::Coordinates.new(@nodeset.search('.//xmlns:northEast'))
end

#south_westObject

coordinates of southwest corner of bounding box (WGS84)



15
16
17
# File 'lib/placemaker/extents.rb', line 15

def south_west
  Placemaker::Coordinates.new(@nodeset.search('.//xmlns:southWest'))
end