Skip to content

Commit

Permalink
coordinate --> coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
havan committed Aug 21, 2024
1 parent 6d648a2 commit 9c83602
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ message Property {
repeated cmp.types.v1alpha.Phone phones = 10;

// Location coordinate
cmp.types.v1alpha.Coordinate coordinate = 11;
cmp.types.v1alpha.Coordinates coordinates = 11;

// Ex: "www.hotel.com"
string website = 12;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ message AccommodationSearchParameters {
cmp.types.v1alpha.LocationCodes location_codes = 1;

// Single geographic point represented by two double fields.
cmp.types.v1alpha.Coordinate location_coordinate = 2;
cmp.types.v1alpha.Coordinates location_coordinates = 2;

// Geo tree type, represented by Country, Region, and City_or_Resort.
cmp.types.v1alpha.GeoTree location_geo_tree = 3;
Expand Down
6 changes: 3 additions & 3 deletions proto/cmp/services/activity/v1alpha/activity_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ message ActivityLocation {
cmp.types.v1alpha.GeoTree geo_tree = 2;

// Coordinate
cmp.types.v1alpha.Coordinate coordinate = 3;
cmp.types.v1alpha.Coordinates coordinates = 3;
}

message PickupDropoffEvent {
Expand All @@ -87,7 +87,7 @@ message PickupDropoffEvent {
google.protobuf.Timestamp date_time = 5;

// Longitude and Latitude of the location
cmp.types.v1alpha.Coordinate coordinates = 6;
cmp.types.v1alpha.Coordinates coordinates = 6;
}

enum PricingType {
Expand All @@ -113,7 +113,7 @@ message ActivityExtendedInfo {
repeated cmp.types.v1alpha.LocalizedDescriptionSet descriptions = 5;

// Coordinates
cmp.types.v1alpha.Coordinate position = 6;
cmp.types.v1alpha.Coordinates coordinates = 6;

// Activity Features
repeated ActivityFeature features = 7;
Expand Down
4 changes: 2 additions & 2 deletions proto/cmp/services/activity/v1alpha/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ message ActivitySearchRequest {
cmp.types.v1alpha.LocationCodes source_location_codes = 7;

// Single geographic point represented by two double fields.
cmp.types.v1alpha.Coordinate source_location_coordinate = 8;
cmp.types.v1alpha.Coordinates source_location_coordinates = 8;

// Geo tree type, represented by Country, Region, and City_or_Resort.
cmp.types.v1alpha.GeoTree source_location_geo_tree = 9;
Expand All @@ -81,7 +81,7 @@ message ActivitySearchRequest {
cmp.types.v1alpha.LocationCodes service_location_codes = 12;

// Single geographic point represented by two double fields.
cmp.types.v1alpha.Coordinate service_location_coordinate = 13;
cmp.types.v1alpha.Coordinates service_location_coordinates = 13;

// Geo tree type, represented by Country, Region, and City_or_Resort.
cmp.types.v1alpha.GeoTree service_location_geo_tree = 14;
Expand Down
6 changes: 3 additions & 3 deletions proto/cmp/types/v1alpha/location.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "cmp/types/v1alpha/measurement.proto";
//
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha/location.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha/location.proto.dot.svg)
message Coordinate {
message Coordinates {
// The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1;
// The longitude in degrees. It must be in the range [-180.0, +180.0].
Expand All @@ -20,14 +20,14 @@ message Coordinate {

// Geo Circle
message GeoCircle {
cmp.types.v1alpha.Coordinate center = 1;
cmp.types.v1alpha.Coordinates center = 1;
cmp.types.v1alpha.Length radius = 2;
}

// Geo Polygon
message GeoPolygon {
// GPS points of the polygon
repeated cmp.types.v1alpha.Coordinate points = 1;
repeated cmp.types.v1alpha.Coordinates points = 1;
}

// Geo Tree
Expand Down

0 comments on commit 9c83602

Please sign in to comment.