Skip to content

Commit 7497e5e

Browse files
committed
updated hello example
1 parent d938718 commit 7497e5e

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

javav2/example_code/location/src/main/java/com/example/location/HelloLocation.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,4 @@ public static CompletableFuture<Void> listGeofences(String collectionName) {
7777
});
7878
return future;
7979
}
80-
8180
}

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)