File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
javav2/example_code/location/src/main/java/com/example/location Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -77,5 +77,4 @@ public static CompletableFuture<Void> listGeofences(String collectionName) {
7777 });
7878 return future ;
7979 }
80-
8180}
Original file line number Diff line number Diff line change @@ -31,13 +31,18 @@ public static void main(String[] args) {
3131 deviceId - The ID of the device (e.g., "iPhone-112356").
3232 """ ;
3333
34- String mapName = "ScottMap33" ;
35- String keyName = "ScottApiKeyName33" ;
36- String collectionName = "ScottCollection33" ;
37- String geoId = "geoId33" ;
38- String trackerName = "geoTracker33" ;
39- String calculatorName = "ScottRouteCalc33" ;
40- String deviceId = "iPhone-111356" ; // Use the iPhone's identifier from Swift
34+ if (args .length != 7 ) {
35+ System .out .println (usage );
36+ System .exit (1 );
37+ }
38+
39+ String mapName = args [0 ];
40+ String keyName = args [1 ];
41+ String collectionName = args [2 ];
42+ String geoId = args [4 ];
43+ String trackerName = args [5 ];
44+ String calculatorName = args [6 ];
45+ String deviceId = args [7 ];
4146
4247 logger .info ("""
4348 AWS Location Service is a fully managed service offered by Amazon Web Services (AWS) that
You can’t perform that action at this time.
0 commit comments