Skip to content

Commit c7e8bd5

Browse files
committed
Commented out proximity & bbox
1 parent 9aaa68f commit c7e8bd5

File tree

1 file changed

+8
-7
lines changed
  • android-location-search/app/src/main/java/com/example/androidlocationsearch

1 file changed

+8
-7
lines changed

android-location-search/app/src/main/java/com/example/androidlocationsearch/SearchScreen.kt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import androidx.compose.ui.text.font.FontWeight
1616
import androidx.compose.ui.unit.dp
1717
import androidx.compose.ui.unit.sp
1818
// Add imports for geojson Point & BoundingBox
19-
import com.mapbox.geojson.Point
20-
import com.mapbox.geojson.BoundingBox
19+
// import com.mapbox.geojson.Point
20+
// import com.mapbox.geojson.BoundingBox
2121
import com.mapbox.maps.dsl.cameraOptions
2222
import com.mapbox.maps.extension.compose.animation.viewport.MapViewportState
2323
import com.mapbox.maps.plugin.animation.MapAnimationOptions
@@ -66,9 +66,12 @@ fun SearchScreen(
6666
searchEngine.search(
6767
newQuery,
6868
SearchOptions(
69-
// Coorindates to Toronto's Distillery District
70-
proximity = Point.fromLngLat(-79.35954, 43.65050),
69+
// proximity = Point.fromLngLat(-79.35954, 43.65050),
7170
limit = 10,
71+
// boundingBox = BoundingBox.fromPoints(
72+
// Point.fromLngLat(-79.49555, 43.60698),
73+
// Point.fromLngLat(-79.29422, 43.75953)
74+
// )
7275
),
7376
callback = object : SearchSuggestionsCallback {
7477
override fun onSuggestions(
@@ -237,6 +240,4 @@ fun handleSuggestionSelection(
237240
Log.e("Search", "Selection error", e)
238241
}
239242
})
240-
}
241-
242-
243+
}

0 commit comments

Comments
 (0)