blob: de191ff432ef60fdbcc1ca2558a7249b40aa336f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
/**
* Define an interface for geo-tagging entities.
*
*/
interface Locatable {
/** Set a location text */
public function setLocation($location);
/**
* Set latitude and longitude tags for a given entity.
*
* @param float $lat
* @param float $long
*/
public function setLatLong($lat, $long);
/**
* Get the contents of the ->geo:lat field.
*
*/
public function getLatitude();
/**
* Get the contents of the ->geo:lat field.
*
*/
public function getLongitude();
/**
* Get the ->location metadata.
*
*/
public function getLocation();
}
|