-
Notifications
You must be signed in to change notification settings - Fork 0
/
LocationsEntpoints.proto
78 lines (65 loc) · 2.25 KB
/
LocationsEntpoints.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
69
70
71
72
73
74
75
76
option java_package = "com.idamobile.instabank.dto.protobuf";
option java_outer_classname = "LocationsEndpoints";
import "Commons.proto";
import "Entities.proto";
import "Events.proto";
import "Wallets.proto";
import "Social.proto";
import "Locations.proto";
import "Forms.proto";
// endpoint URL: "/getLocations"
// returns: LocationsResponseProtobufDTO
// deprecated use /v2/getLocations
message LocationsRequestProtobufDTO {
optional int64 lastUpdateTime = 1;
}
// deprecated
message LocationsResponseProtobufDTO {
repeated LocationProtobufDTO modifiedLocations = 1;
repeated string removedLocationIds = 2;
repeated LocationServiceProtobufDTO modifiedServices = 3;
repeated string removedServiceIds = 4;
repeated LocationTypeProtobufDTO modifiedLocationTypes = 5;
repeated string removedLocationTypeIds = 6;
required int64 lastUpdateTime = 7;
}
/* Locations v2 */
// endpoint URL: /v2/getLocations
// returns LocationsV2ResponseProtobufDTO
message LocationsV2RequestProtobufDTO {
optional int64 lastUpdateTime = 1;
}
message LocationsV2ResponseProtobufDTO {
repeated LocationProtobufDTO locations = 1;
repeated string removedIds = 2;
repeated LocationServiceProtobufDTO services = 3;
repeated LocationOwnerProtobufDTO owners = 4;
required int64 lastUpdateTime = 5;
}
// endpoint URL: GET /v2/getLocationsDictionary
message LocationsV2DictionaryResponseProtobufDTO {
repeated LocationServiceProtobufDTO services = 1;
repeated LocationOwnerProtobufDTO owners = 2;
}
// endpoint URL: POST /v2/getLocationsViewport
message LocationsViewportRequestProtobufDTO {
required double centerLatitude = 1;
required double centerLongitude = 2;
required double latitudeSpan = 3;
required double longitudeSpan = 4;
required int32 zoomLevel = 5;
repeated string serviceIds = 6;
}
message LocationsViewportResponseProtobufDTO {
repeated LocationProtobufDTO locations = 1;
repeated ClusterProtobufDTO clusters = 2;
}
// endpoint URL: POST /v2/getNearestLocation
message NearestLocationRequestProtobufDTO {
required double latitude = 1;
required double longitude = 2;
repeated string serviceIds = 3;
}
message NearestLocationResponseProtobufDTO {
optional LocationProtobufDTO location = 1;
}