| @@ 101-107 (lines=7) @@ | ||
| 98 | /** |
|
| 99 | * @return double |
|
| 100 | */ |
|
| 101 | function latitude() { |
|
| 102 | ||
| 103 | if ( is_null( $this->_latitude ) && ! is_wp_error( $this->location() ) ) { |
|
| 104 | $this->_latitude = $this->location()->latitude(); |
|
| 105 | } |
|
| 106 | return doubleval( $this->_latitude ); |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * @return Location|\WP_Error |
|
| @@ 122-128 (lines=7) @@ | ||
| 119 | /** |
|
| 120 | * @return double |
|
| 121 | */ |
|
| 122 | function longitude() { |
|
| 123 | ||
| 124 | if ( is_null( $this->_longitude ) && ! is_wp_error( $this->location() ) ) { |
|
| 125 | $this->_longitude = doubleval( $this->location()->longitude() ); |
|
| 126 | } |
|
| 127 | return doubleval( $this->_longitude ); |
|
| 128 | } |
|
| 129 | ||
| 130 | /** |
|
| 131 | * Get the position of this marker. An array with key/value pairs of lat and lng. |
|