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
Making multiple subsequent calls to /retrieve turned out
to be undesired for billing and performance reasons, so this
code change only calls /retrieve for the final selection.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
### Breaking changes
6
6
-[CORE] Access token needs to be assigned via `MapboxOptions.accessToken` now
7
+
-[Address Autofill, Place Autocomplete] Search is a two-steps action now, i.e. it returns `Suggestion`s (without the geo coordinate) at the first step and `Result` after suggestion selection. The `coordinate` field is no longer available in `Suggestion`.
8
+
-[Address Autofill]`suggestions()` is renamed to `reverseGeocoding()`
method public default static com.mapbox.search.autofill.AddressAutofill create(com.mapbox.common.location.LocationProvider? locationProvider = <anonymous class>());
6
6
method public default static final com.mapbox.search.autofill.AddressAutofill create();
7
+
method public suspend Object? reverseGeocoding(com.mapbox.geojson.Point point, com.mapbox.search.autofill.AddressAutofillOptions options, kotlin.coroutines.Continuation<? super com.mapbox.bindgen.Expected<java.lang.Exception,java.util.List<com.mapbox.search.autofill.AddressAutofillResult>>> p);
7
8
method public suspend Object? select(com.mapbox.search.autofill.AddressAutofillSuggestion suggestion, kotlin.coroutines.Continuation<? super com.mapbox.bindgen.Expected<java.lang.Exception,com.mapbox.search.autofill.AddressAutofillResult>> p);
8
-
method public suspend Object? suggestions(com.mapbox.geojson.Point point, com.mapbox.search.autofill.AddressAutofillOptions options, kotlin.coroutines.Continuation<? super com.mapbox.bindgen.Expected<java.lang.Exception,java.util.List<com.mapbox.search.autofill.AddressAutofillSuggestion>>> p);
9
9
method public suspend Object? suggestions(com.mapbox.search.autofill.Query query, com.mapbox.search.autofill.AddressAutofillOptions options, kotlin.coroutines.Continuation<? super com.mapbox.bindgen.Expected<java.lang.Exception,java.util.List<com.mapbox.search.autofill.AddressAutofillSuggestion>>> p);
10
10
field public static final com.mapbox.search.autofill.AddressAutofill.Companion Companion;
Copy file name to clipboardExpand all lines: MapboxSearch/autofill/api/autofill.api
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@ public abstract interface class com/mapbox/search/autofill/AddressAutofill {
2
2
public static final field Companion Lcom/mapbox/search/autofill/AddressAutofill$Companion;
3
3
public static fun create ()Lcom/mapbox/search/autofill/AddressAutofill;
4
4
public static fun create (Lcom/mapbox/common/location/LocationProvider;)Lcom/mapbox/search/autofill/AddressAutofill;
5
+
public abstract fun reverseGeocoding (Lcom/mapbox/geojson/Point;Lcom/mapbox/search/autofill/AddressAutofillOptions;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
5
6
public abstract fun select (Lcom/mapbox/search/autofill/AddressAutofillSuggestion;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
6
-
public abstract fun suggestions (Lcom/mapbox/geojson/Point;Lcom/mapbox/search/autofill/AddressAutofillOptions;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
7
7
public abstract fun suggestions (Lcom/mapbox/search/autofill/Query;Lcom/mapbox/search/autofill/AddressAutofillOptions;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
8
8
}
9
9
@@ -41,6 +41,7 @@ public final class com/mapbox/search/autofill/AddressAutofillResult : android/os
41
41
public fun describeContents ()I
42
42
public fun equals (Ljava/lang/Object;)Z
43
43
public final fun getAddress ()Lcom/mapbox/search/autofill/AddressComponents;
44
+
public final fun getCoordinate ()Lcom/mapbox/geojson/Point;
44
45
public final fun getSuggestion ()Lcom/mapbox/search/autofill/AddressAutofillSuggestion;
45
46
public fun hashCode ()I
46
47
public fun toString ()Ljava/lang/String;
@@ -59,7 +60,6 @@ public final class com/mapbox/search/autofill/AddressAutofillSuggestion : androi
59
60
public static final field CREATOR Landroid/os/Parcelable$Creator;
60
61
public fun describeContents ()I
61
62
public fun equals (Ljava/lang/Object;)Z
62
-
public final fun getCoordinate ()Lcom/mapbox/geojson/Point;
63
63
public final fun getFormattedAddress ()Ljava/lang/String;
0 commit comments