@@ -615,9 +615,11 @@ public protocol SuggestStoreProtocol : AnyObject {
615
615
* since city and region names are not unique. `filter` is disjunctive: If
616
616
* any item in `filter` matches a geoname, the geoname will be filtered in.
617
617
*
618
- * The query can match a geoname in more than one way, for example both a
619
- * full name and an abbreviation. The returned vec of [`GeonameMatch`]
620
- * values will include all matches for a geoname, one match per geoname.
618
+ * The query can match a single geoname in more than one way. For example,
619
+ * it can match both a full name and an abbreviation. The returned vec of
620
+ * [`GeonameMatch`] values will include all matches for a geoname, one
621
+ * match per `match_type` per geoname. In other words, a matched geoname
622
+ * can map to more than one `GeonameMatch`.
621
623
*/
622
624
func fetchGeonames( query: String , matchNamePrefix: Bool , geonameType: GeonameType ? , filter: [ Geoname ] ? ) throws -> [ GeonameMatch ]
623
625
@@ -799,9 +801,11 @@ open func dismissSuggestion(suggestionUrl: String)throws {try rustCallWithError
799
801
* since city and region names are not unique. `filter` is disjunctive: If
800
802
* any item in `filter` matches a geoname, the geoname will be filtered in.
801
803
*
802
- * The query can match a geoname in more than one way, for example both a
803
- * full name and an abbreviation. The returned vec of [`GeonameMatch`]
804
- * values will include all matches for a geoname, one match per geoname.
804
+ * The query can match a single geoname in more than one way. For example,
805
+ * it can match both a full name and an abbreviation. The returned vec of
806
+ * [`GeonameMatch`] values will include all matches for a geoname, one
807
+ * match per `match_type` per geoname. In other words, a matched geoname
808
+ * can map to more than one `GeonameMatch`.
805
809
*/
806
810
open func fetchGeonames( query: String , matchNamePrefix: Bool , geonameType: GeonameType ? , filter: [ Geoname ] ? ) throws -> [ GeonameMatch ] {
807
811
return try FfiConverterSequenceTypeGeonameMatch . lift ( try rustCallWithError ( FfiConverterTypeSuggestApiError . lift) {
@@ -3133,7 +3137,7 @@ private var initializationResult: InitializationResult = {
3133
3137
if ( uniffi_suggest_checksum_method_suggeststore_dismiss_suggestion ( ) != 43014 ) {
3134
3138
return InitializationResult . apiChecksumMismatch
3135
3139
}
3136
- if ( uniffi_suggest_checksum_method_suggeststore_fetch_geonames ( ) != 53694 ) {
3140
+ if ( uniffi_suggest_checksum_method_suggeststore_fetch_geonames ( ) != 22569 ) {
3137
3141
return InitializationResult . apiChecksumMismatch
3138
3142
}
3139
3143
if ( uniffi_suggest_checksum_method_suggeststore_fetch_global_config ( ) != 45439 ) {
0 commit comments