Releases: mapbox/mapbox-search-android
Releases · mapbox/mapbox-search-android
v2.0.0-beta
New features:
- Offline support for Points of Interest (POIs). Search SDK now supports offline search for POIs, in addition to addresses. Please note that this is a premium feature that needs to be enabled on your Mapbox account.
- Added MapboxID (stable ID) related to search features in search results. MapboxID attribute is available in all relevant classes.
- Performance improvement when displaying search suggestions
- Support for Maps SDK v11 and latest Mapbox Core SDK
- Country search support
- Better formatting for address descriptions in offline search mode
- Improved search engine performance and tracing
Breaking changes
- Renamed
Discover
class toCategory
. The 'Category' class can be used for category searches, e.g., 'Coffee Shop.'
- [CORE] Access token now needs to be assigned via
MapboxOptions.accessToken
- [CORE] Added a new field called
mapboxId
toBaseSearchResult
,SearchResult
,CategoryResult
, andOfflineSearchResult
- [Address Autofill, Place Autocomplete] Added new fields called
id
andmapboxId
toAddressAutofillResult
andPlaceAutocompleteResult
- [Address Autofill, Place Autocomplete] Search is a two-step action now; it returns
Suggestions
(without the geo coordinates) and later returns 'Retrieved data' that includes coordinates and additional metadata.
Mapbox dependencies
- Bump Search Native SDK to 2.0.0-alpha.13
v2.0.0-alpha: Remove TwoStepsToOneStepSearchEngineAdapter
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.
1.0.0-rc.7
1.0.0-rc.7
Bug fixes
- [ALL] Fixed street name capitalization for names with numbers.
- [ALL] Fixed indexable records matching where a record with lower cased street wasn't matched correctly.
Mapbox dependencies
- Search Native SDK
0.71.0
- Common SDK
23.6.0
- Kotlin
1.5.31
1.0.0-rc.6
1.0.0-rc.6
Breaking changes
- [CORE]
SearchSuggestionType.IndexableRecordItem.type
field has been replaced withrecord
field which providesIndexableRecord
instance.
Bug fixes
- [CORE] Now search suggestions and search results that are matched with
IndexableRecord
s provide data from the backend which is likely to be up-to-date than data fromIndexableRecord
. OriginalIndexableRecord
instance can be obtained fromSearchSuggestionType.IndexableRecordItem.record
andSearchResult.indexableRecord
. - [ALL] Fixed an issue where SBS backend doesn't always capitilized street names for POI results.
- [ALL] Fixed an issue where some POI results from SBS backend were missing "Ave/St/Avenue/Street" words in street names.
Mapbox dependencies
- Search Native SDK
0.70.0
- Common SDK
23.6.0
- Kotlin
1.5.31
1.0.0-rc.5
1.0.0-rc.5
New features
- [CORE] Now
SearchSuggestion
might return suggestions with typeSearchSuggestionType.Brand
.
Breaking changes
- [CORE] Function
SearchSelectionCallback.onCategoryResult()
has been renamed toonResults()
. Now this function is called when brand search suggestion is resolved. - [UI] Similarly, function
SearchEngineUiAdapter.onCategoryResultsShown()
has been renamed toonSearchResultsShown
().
Bug fixes
- [ALL] Fixed an issue with truncated formatted address.
- [ALL] Fixed an issue with excessive normalization of category names in request's url.
Mapbox dependencies
- Search Native SDK
0.69.0
- Common SDK
23.6.0-rc.1
- Kotlin
1.5.31
1.0.0-rc.4
1.0.0-rc.4
New features
- [Place Autocomplete] Now
PlaceAutocompleteSuggestion
andPlaceAutocompleteResult
provide new propertyetaMinutes
. - [Place Autocomplete] Now
PlaceAutocompleteOptions
accepts an additional parameternavigationProfile
that determines how the distance and time of arrival (ETA) will be calculated.
Breaking changes
- [CORE]
SearchNavigationProfile
type has been renamed toNavigationProfile
and moved tocom.mapbox.search.common
package. - [Address Autofill]
AddressAutofillSuggestion.result()
function has been removed. UseAddressAutofill.select(AddressAutofillSuggestion)
instead. Note that developers must call this function when user selects a search suggestion in the UI.
Bug fixes
- [Place Autocomplete] Fixed a bug with missing
PlaceAutocompleteSuggestion.distanceMeters
.
Mapbox dependencies
- Search Native SDK
0.68.0
- Common SDK
23.3.1
- Kotlin
1.5.31
1.0.0-rc.3
1.0.0-rc.3
New features
- [Place Autocomplete] Now
PlaceAutocompleteSuggestion
provides additional propertyPlaceAutocompleteSuggestion.routablePoints
.
Breaking changes
- [Place Autocomplete]
PlaceAutocompleteSuggestion.result()
function has been removed. UsePlaceAutocomplete.select(PlaceAutocompleteSuggestion)
instead. Note that developers must call this function when user selects a search suggestion in the UI.
Mapbox dependencies
- Search Native SDK
0.68.0
- Common SDK
23.3.1
- Kotlin
1.5.31
1.0.0-rc.2
1.0.0-rc.2
Bug fixes
- [CORE] Partially fixed a bug when indexable records couldn't be matched with corresponding search results which caused duplicated search results.
- [UI] Fixed a crash in
SearchEngineUiAdapter
that could happen during history records removing.
Mapbox dependencies
- Search Native SDK
0.67.2
- Common SDK
23.3.1
- Kotlin
1.5.31
1.0.0-rc.1
1.0.0-rc.1
Breaking changes
- [CORE] Deprecated functions
AnalyticsService.createRawFeedbackEvent()
have been removed.
Mapbox dependencies
- Search Native SDK
0.67.1
- Common SDK
23.3.1
- Kotlin
1.5.31
1.0.0-beta.46
1.0.0-beta.46
New features
- [CORE] Now
SearchSuggestion
andSearchResult
types provide a new fieldfullAddress
which contains formatted text address from backend. - [DISCOVER] Now
Discover
SDK provides callback-based alternatives for Kotlin suspend functions. - [DISCOVER] Now
DiscoverResult
provides a new fieldformattedAddress
. - [PLACE AUTOCOMPLETE] Place Autocomplete SDK is available now. See docs for more information.
- [UI]
PlaceAutocompleteUiAdapter
type is available. It's a helper class for connectingPlace Autocomple SDK
with theSearchResultsView
. - [UI] A new
SearchPlace.createFromPlaceAutocompleteResult()
function is available.
Breaking changes
- [CORE]
com.mapbox.search.CompletionCallback
has been moved tocom.mapbox.search.common.CompletionCallback
. - [CORE]
com.mapbox.search.ImageInfo
has been moved tocom.mapbox.search.common.metadata.ImageInfo
.
Bug fixes
- [CORE] Fixed
SearchSuggestion.name
andSearchResult.name
formatting for address types. - [AUTOFILL] Fixed address formatting for
AddressAutofillSuggestion.formattedAddress
.
Mapbox dependencies
- Search Native SDK
0.67.1
- Common SDK
23.3.1
- Kotlin
1.5.31