Skip to content

Commit 30b0dcf

Browse files
committed
updated example for linter issue
1 parent 3bcd8fd commit 30b0dcf

File tree

1 file changed

+34
-36
lines changed

1 file changed

+34
-36
lines changed

kotlin/services/location/src/main/java/com/example/location/scenario/LocationScenario.kt

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ suspend fun main(args: Array<String>) {
130130
maps, not geocoding). API keys can expire, ensuring temporary
131131
access control.
132132
133-
""".trimIndent()
133+
""".trimIndent(),
134134
)
135135
val keyArn = createKey(keyName, mapArn)
136136
println("The Key ARN is: $keyArn")
@@ -141,13 +141,12 @@ suspend fun main(args: Array<String>) {
141141
println("3. Display Map URL")
142142
println(
143143
"""
144-
In order to get the MAP URL, you need to get the API Key value.
145-
You can get the key value using the AWS Management Console under
146-
Location Services. This operation cannot be completed using the
147-
AWS SDK. For more information about getting the key value, see
148-
the AWS Location Documentation.
149-
150-
""".trimIndent()
144+
In order to get the MAP URL, you need to get the API Key value.
145+
You can get the key value using the AWS Management Console under
146+
Location Services. This operation cannot be completed using the
147+
AWS SDK. For more information about getting the key value, see
148+
the AWS Location Documentation.
149+
""".trimIndent(),
151150
)
152151
val mapUrl = "https://maps.geo.aws.amazon.com/maps/v0/maps/$mapName/tiles/{z}/{x}/{y}?key={KeyValue}"
153152
println("Embed this URL in your Web app: $mapUrl")
@@ -167,20 +166,19 @@ suspend fun main(args: Array<String>) {
167166
println("5. Store a geofence geometry in a given geofence collection.")
168167
println(
169168
"""
170-
An AWS Location geofence is a virtual boundary that defines a geographic area
171-
on a map. It is a useful feature for tracking the location of
172-
assets or monitoring the movement of objects within a specific region.
169+
An AWS Location geofence is a virtual boundary that defines a geographic area
170+
on a map. It is a useful feature for tracking the location of
171+
assets or monitoring the movement of objects within a specific region.
173172
174-
To define a geofence, you need to specify the coordinates of a
175-
polygon that represents the area of interest. The polygon must be
176-
defined in a counter-clockwise direction, meaning that the points of
177-
the polygon must be listed in a counter-clockwise order.
173+
To define a geofence, you need to specify the coordinates of a
174+
polygon that represents the area of interest. The polygon must be
175+
defined in a counter-clockwise direction, meaning that the points of
176+
the polygon must be listed in a counter-clockwise order.
178177
179-
This is a requirement for the AWS Location service to correctly
180-
interpret the geofence and ensure that the location data is
181-
accurately processed within the defined area.
182-
183-
""".trimIndent()
178+
This is a requirement for the AWS Location service to correctly
179+
interpret the geofence and ensure that the location data is
180+
accurately processed within the defined area.
181+
""".trimIndent(),
184182
)
185183

186184
waitForInputToContinue(scanner)
@@ -201,16 +199,16 @@ suspend fun main(args: Array<String>) {
201199
println("7. Update the position of a device in the location tracking system.")
202200
println(
203201
"""
204-
The AWS location service does not enforce a strict format for deviceId, but it must:
205-
- Be a string (case-sensitive).
206-
- Be 1–100 characters long.
207-
- Contain only:
208-
- Alphanumeric characters (A-Z, a-z, 0-9)
209-
- Underscores (_)
210-
- Hyphens (-)
211-
- Be the same ID used when sending and retrieving positions.
202+
The AWS location service does not enforce a strict format for deviceId, but it must:
203+
- Be a string (case-sensitive).
204+
- Be 1–100 characters long.
205+
- Contain only:
206+
- Alphanumeric characters (A-Z, a-z, 0-9)
207+
- Underscores (_)
208+
- Hyphens (-)
209+
- Be the same ID used when sending and retrieving positions.
212210
213-
""".trimIndent()
211+
""".trimIndent(),
214212
)
215213

216214
waitForInputToContinue(scanner)
@@ -247,15 +245,15 @@ suspend fun main(args: Array<String>) {
247245
println("11. Use the GeoPlacesClient to perform additional operations.")
248246
println(
249247
"""
250-
This scenario will show use of the GeoPlacesClient that enables
251-
location search and geocoding capabilities for your applications.
248+
This scenario will show use of the GeoPlacesClient that enables
249+
location search and geocoding capabilities for your applications.
252250
253-
We are going to use this client to perform these AWS Location tasks:
254-
- Reverse Geocoding (reverseGeocode): Converts geographic coordinates into addresses.
255-
- Place Search (searchText): Finds places based on search queries.
256-
- Nearby Search (searchNearby): Finds places near a specific location.
251+
We are going to use this client to perform these AWS Location tasks:
252+
- Reverse Geocoding (reverseGeocode): Converts geographic coordinates into addresses.
253+
- Place Search (searchText): Finds places based on search queries.
254+
- Nearby Search (searchNearby): Finds places near a specific location.
257255
258-
""".trimIndent()
256+
""".trimIndent(),
259257
)
260258

261259
waitForInputToContinue(scanner)

0 commit comments

Comments
 (0)