@@ -84,12 +84,19 @@ public class SearchResult internal constructor(
84
84
public val boundingBox: BoundingBox ? = base.bbox
85
85
86
86
/* *
87
- * Poi categories. Always empty for non-POI search results.
87
+ * POI categories. Always empty for non-POI search results.
88
88
* @see types
89
89
*/
90
90
@IgnoredOnParcel
91
91
public val categories: List <String >? = base.categories
92
92
93
+ /* *
94
+ * Canonical POI category IDs. Always empty for non-POI suggestions.
95
+ * @see types
96
+ */
97
+ @IgnoredOnParcel
98
+ public val categoryIds: List <String >? = base.categoryIds
99
+
93
100
/* *
94
101
* [Maki](https://github.com/mapbox/maki/) icon name for search result.
95
102
*/
@@ -177,6 +184,7 @@ public class SearchResult internal constructor(
177
184
if (routablePoints != other.routablePoints) return false
178
185
if (boundingBox != other.boundingBox) return false
179
186
if (categories != other.categories) return false
187
+ if (categoryIds != other.categoryIds) return false
180
188
if (makiIcon != other.makiIcon) return false
181
189
if (coordinate != other.coordinate) return false
182
190
if (accuracy != other.accuracy) return false
@@ -199,23 +207,24 @@ public class SearchResult internal constructor(
199
207
result = 31 * result + id.hashCode()
200
208
result = 31 * result + mapboxId.hashCode()
201
209
result = 31 * result + name.hashCode()
202
- result = 31 * result + (matchingName?.hashCode() ? : 0 )
203
- result = 31 * result + (descriptionText?.hashCode() ? : 0 )
204
- result = 31 * result + (address?.hashCode() ? : 0 )
205
- result = 31 * result + (fullAddress?.hashCode() ? : 0 )
206
- result = 31 * result + (routablePoints?.hashCode() ? : 0 )
207
- result = 31 * result + (boundingBox?.hashCode() ? : 0 )
208
- result = 31 * result + (categories?.hashCode() ? : 0 )
209
- result = 31 * result + (makiIcon?.hashCode() ? : 0 )
210
+ result = 31 * result + matchingName.hashCode()
211
+ result = 31 * result + descriptionText.hashCode()
212
+ result = 31 * result + address.hashCode()
213
+ result = 31 * result + fullAddress.hashCode()
214
+ result = 31 * result + routablePoints.hashCode()
215
+ result = 31 * result + boundingBox.hashCode()
216
+ result = 31 * result + categories.hashCode()
217
+ result = 31 * result + categoryIds.hashCode()
218
+ result = 31 * result + makiIcon.hashCode()
210
219
result = 31 * result + coordinate.hashCode()
211
- result = 31 * result + ( accuracy? .hashCode() ? : 0 )
220
+ result = 31 * result + accuracy.hashCode()
212
221
result = 31 * result + types.hashCode()
213
- result = 31 * result + ( etaMinutes? .hashCode() ? : 0 )
214
- result = 31 * result + ( metadata? .hashCode() ? : 0 )
222
+ result = 31 * result + etaMinutes.hashCode()
223
+ result = 31 * result + metadata.hashCode()
215
224
result = 31 * result + externalIDs.hashCode()
216
- result = 31 * result + ( distanceMeters? .hashCode() ? : 0 )
225
+ result = 31 * result + distanceMeters.hashCode()
217
226
result = 31 * result + (serverIndex ? : 0 )
218
- result = 31 * result + ( indexableRecord? .hashCode() ? : 0 )
227
+ result = 31 * result + indexableRecord.hashCode()
219
228
return result
220
229
}
221
230
@@ -235,6 +244,7 @@ public class SearchResult internal constructor(
235
244
" routablePoints=$routablePoints , " +
236
245
" boundingBox=$boundingBox , " +
237
246
" categories=$categories , " +
247
+ " categoryIds=$categoryIds , " +
238
248
" makiIcon=$makiIcon , " +
239
249
" coordinate=$coordinate , " +
240
250
" accuracy=$accuracy , " +
0 commit comments