You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Versions bump
* Support multiple retrieve for the Detail API
* Support category IDs and bounding box for PlaceAutocomplete
* Update changelog and version bump
* Remove old tests suppresions
* Update Firebase device model
Copy file name to clipboardExpand all lines: MapboxSearch/place-autocomplete/src/androidTest/java/com/mapbox/search/autocomplete/PlaceAutocompleteIntegrationTest.kt
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -188,7 +188,22 @@ internal class PlaceAutocompleteIntegrationTest {
Copy file name to clipboardExpand all lines: MapboxSearch/place-autocomplete/src/main/java/com/mapbox/search/autocomplete/PlaceAutocompleteResultFactory.kt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ internal class PlaceAutocompleteResultFactory {
Copy file name to clipboardExpand all lines: MapboxSearch/place-autocomplete/src/main/java/com/mapbox/search/autocomplete/PlaceAutocompleteSuggestion.kt
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,12 @@ public class PlaceAutocompleteSuggestion internal constructor(
60
60
*/
61
61
publicvalcategories:List<String>?,
62
62
63
+
/**
64
+
* Canonical POI category IDs. Always empty for non-POI suggestions.
65
+
* @see type
66
+
*/
67
+
publicvalcategoryIds:List<String>?,
68
+
63
69
/**
64
70
* Underlying data on which this [PlaceAutocompleteSuggestion] is based.
65
71
*/
@@ -85,6 +91,7 @@ public class PlaceAutocompleteSuggestion internal constructor(
85
91
if (!etaMinutes.safeCompareTo(other.etaMinutes)) returnfalse
86
92
if (type != other.type) returnfalse
87
93
if (categories != other.categories) returnfalse
94
+
if (categoryIds != other.categoryIds) returnfalse
88
95
89
96
returntrue
90
97
}
@@ -102,6 +109,7 @@ public class PlaceAutocompleteSuggestion internal constructor(
102
109
result =31* result + (etaMinutes?.hashCode() ?:0)
103
110
result =31* result + type.hashCode()
104
111
result =31* result + (categories?.hashCode() ?:0)
112
+
result =31* result + (categoryIds?.hashCode() ?:0)
105
113
return result
106
114
}
107
115
@@ -118,7 +126,8 @@ public class PlaceAutocompleteSuggestion internal constructor(
0 commit comments