-
Notifications
You must be signed in to change notification settings - Fork 0
/
geospatial_location.proto
68 lines (57 loc) · 2.75 KB
/
geospatial_location.proto
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright 2020-2024 SIX AFTER, INC (SIX AFTER)
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: SIX AFTER, INC (SIX AFTER)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax="proto3";
package sixafter.types;
option go_package="github.com/sixafter/types;types";
option cc_enable_arenas = true;
option java_package = "com.sixafter.types";
option java_multiple_files = true;
option java_outer_classname = "GeospatialLocationProto";
option objc_class_prefix = "TPB";
option csharp_namespace = "SixAfter.Types.WellKnownTypes";
import "google/protobuf/timestamp.proto";
import "compass_heading.proto";
import "geospatial_coordinate.proto";
// The `GeospatialLocation` message represents a spatial or temporal scale,
// combining geographical coordinates, heading, movement, and timestamp.
// It is commonly used in location-based services, navigation systems, and
// applications requiring geospatial data.
message GeospatialLocation {
// The geographical coordinate information of the location.
// Includes latitude, longitude, and elevation as defined in the `GeospatialCoordinate` message.
GeospatialCoordinate coordinate = 1;
// The azimuth (orientation) of the device relative to true or magnetic north.
// Defined using the `CompassHeading` message, it represents the heading
// of the device at the time of measurement.
CompassHeading heading = 2;
// The direction in which the device is traveling, measured in degrees
// relative to true north (0°). This reflects the course or trajectory
// of the device's movement.
//
// **Note:** Course direction is different from heading. Course measures
// the direction the device is moving (e.g., forward travel), independent
// of its physical orientation. Heading reflects the device's orientation.
// Example: 90° indicates the device is moving east.
double course = 3;
// The instantaneous speed of the device, measured in meters per second (m/s).
// Example: A speed of 3.5 m/s (12.6 km/h or 7.8 mph) indicates the device
// is moving at a walking pace.
float speed = 4;
// The time at which this geospatial location data was recorded.
// Example: Timestamp of "2024-11-17T15:00:00Z" represents 3:00 PM UTC on November 17, 2024.
google.protobuf.Timestamp timestamp = 5;
}