summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-26 14:43:08 +0200
committerJoas Schilling <coding@schilljs.com>2021-04-26 16:47:01 +0200
commit7d3c1351467a0ffe76fb521cb1fb6743f743de18 (patch)
treed0a556a3f951cd78bca6b3215bcd7c82a982e589 /lib
parentaa651fd629534e96432492c1a74e979b28222ce2 (diff)
downloadnextcloud-server-7d3c1351467a0ffe76fb521cb1fb6743f743de18.tar.gz
nextcloud-server-7d3c1351467a0ffe76fb521cb1fb6743f743de18.zip
Add geo location as ROS type
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/public/RichObjectStrings/Definitions.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php
index c59855e957b..5c85a163233 100644
--- a/lib/public/RichObjectStrings/Definitions.php
+++ b/lib/public/RichObjectStrings/Definitions.php
@@ -418,6 +418,37 @@ class Definitions {
],
],
],
+ 'geo-location' => [
+ 'author' => 'Nextcloud',
+ 'app' => 'core',
+ 'since' => '22.0.0',
+ 'parameters' => [
+ 'id' => [
+ 'since' => '22.0.0',
+ 'required' => true,
+ 'description' => 'The geo URI (https://en.wikipedia.org/wiki/Geo_URI_scheme) to identify the location',
+ 'example' => 'geo:52.5450511,13.3741463',
+ ],
+ 'name' => [
+ 'since' => '22.0.0',
+ 'required' => true,
+ 'description' => 'A description of the location',
+ 'example' => 'Nextcloud Berlin Office',
+ ],
+ 'latitude' => [
+ 'since' => '22.0.0',
+ 'required' => true,
+ 'description' => 'The latitude of the location MUST be the same as in the id',
+ 'example' => '52.5450511',
+ ],
+ 'longitude' => [
+ 'since' => '22.0.0',
+ 'required' => true,
+ 'description' => 'The longitude of the location MUST be the same as in the id',
+ 'example' => '13.3741463',
+ ],
+ ],
+ ],
'open-graph' => [
'author' => 'Maxence Lange',
'app' => 'mood',