Class: Placemaker::Extents
- Inherits:
-
Object
- Object
- Placemaker::Extents
- 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
-
#center ⇒ Object
coordinates of center (WGS84).
-
#north_east ⇒ Object
coordinates of northeast corner of bounding box (WGS84).
-
#south_west ⇒ Object
coordinates of southwest corner of bounding box (WGS84).
Methods included from XmlHelper
Instance Method Details
#center ⇒ Object
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_east ⇒ Object
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_west ⇒ Object
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 |