Debian Codegraph @

doc/source/specification/geolocations.rst

raw
1 ..
2 Copyright 2014 IBM Corp.
3
4 Licensed under the Apache License, Version 2.0 (the "License"); you may
5 not use this file except in compliance with the License. You may obtain
6 a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 License for the specific language governing permissions and limitations
14 under the License.
15
16 .. _geolocations:
17
18 =============
19 Geolocations
20 =============
21
22 Geolocation information, which reveals a resource's physical location, is
23 obtained by using tracking technologies such as global positioning system
24 (GPS) devices, or IP geolocation by using databases that map IP addresses to
25 geographic locations. Geolocation information is widely used in
26 context-sensitive content delivery, enforcing location-based access
27 restrictions on services, and fraud detection and prevention.
28
29 Due to the intense concerns about security and privacy, countries and regions
30 introduced various legislation and regulation. To determine whether an event
31 is compliant sometimes depends on the geolocation of the event. Therefore, it
32 is crucial to report geolocation information unambiguously in an audit trail.
33
34 =========== ========= ======== ===============================================================================================================
35 Property Type Required Description
36 =========== ========= ======== ===============================================================================================================
37 id xs:anyURI No Optional identifier for a geolocation
38 latitude xs:string No The latitude of a geolocation
39 longitude xs:string No The longitude of a geolocation
40 elevation xs:double No The elevation of a geolocation in meters
41 accuracy xs:double No The accuracy of a geolocation in meters
42 city xs:string No The city of a geolocation
43 state xs:string No The state/province of a geolocation
44 regionICANN xs:string No A region (e.g., a country, a sovereign state, a dependent territory or a special area of geographical interest)
45 annotations cadf:Map No User-defined geolocation information (e.g., building name, room number)
46 =========== ========= ======== ===============================================================================================================
47
48 Usage Requirements
49 ==================
50 1. Geolocation typed data SHALL contain at least one valid property and
51 associated value.
52
53 2. Geolocation typed data SHALL NOT be used to represent virtual or logical
54 locations (e.g. network zone).
55
56 3. For each geolocation data instance, the properties SHALL be consistent.
57 That is, all properties SHALL consistently represent the same geographic
58 location and SHALL NOT provide conflicting value data.
59
60 .. note::
61
62 `latitude`, `longitude` and `region` are all supplied as properties
63 describing the same geolocation, the `latitude` and `longitude` properties
64 coordinate values should resolve to the same geographic location as
65 described by the value of the `region` property.
66
67 4. ICANN's implementation plan states "Upper and lower case characters are
68 considered to be syntactically and semantically identical"; therefore,
69 the "regionICANN" property's values MAY be either upper or lower case.
70
71 Serialisation
72 =============
73
74 .. code-block:: javascript
75
76 {
77 "typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/event",
78 ...,
79 "target": {
80 ...,
81 "geolocation": {
82 "latitude": "+372207.90",
83 "longitude": "-1220210.20",
84 "elevation": "10"
85 }
86 }
87 }