aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/Locatable.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes/Locatable.php')
-rw-r--r--engine/classes/Locatable.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/engine/classes/Locatable.php b/engine/classes/Locatable.php
new file mode 100644
index 000000000..5f52d8eab
--- /dev/null
+++ b/engine/classes/Locatable.php
@@ -0,0 +1,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();
+} \ No newline at end of file