Skip to content

Commit 88a634d

Browse files
committed
update the scenario
1 parent 9a24597 commit 88a634d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

javav2/example_code/location/src/main/java/com/example/location/scenario/LocationScenario.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ public static void main(String[] args) {
5252
deviceId - The ID of the device (e.g., "iPhone-112356").
5353
""";
5454

55-
//if (args.length != 7) {
56-
// logger.info(usage);
57-
// return;
58-
// }
59-
60-
String mapName = "AWSMap200" ; //args[0];
61-
String keyName = "AWSApiKey200" ; //args[1];
62-
String collectionName = "AWSLocationCollection200" ; //args[2];
63-
String geoId = "geoId200" ; //args[3];
64-
String trackerName = "geoTracker200" ; //args[4];
65-
String calculatorName = "AWSRouteCalc200" ; //args[5];
66-
String deviceId = "iPhone-112356" ; //args[6];
55+
if (args.length != 7) {
56+
logger.info(usage);
57+
return;
58+
}
59+
60+
String mapName = args[0];
61+
String keyName = args[1];
62+
String collectionName = args[2];
63+
String geoId = args[3];
64+
String trackerName = args[4];
65+
String calculatorName = args[5];
66+
String deviceId = args[6];
6767

6868
logger.info("""
6969
AWS Location Service is a fully managed service offered by Amazon Web Services (AWS) that

0 commit comments

Comments
 (0)