Releases: mapbox/mapbox-search-android
Releases · mapbox/mapbox-search-android
v2.0.0-rc.1
New features
- [Online search] Add method to retrieve a POI by Mapbox ID
- [Offline search] Add optional
language
parameter to OfflineSearchEngine.createTilesetDescriptor and OfflineSearchEngine.createPlacesTilesetDescriptor functions. - [UI] Added supports to select a single map feature to support map click events
Breaking changes
- [CORE] Undo renaming of all Discover-related terms to Category
- [Address Autofill, Place Autocomplete] Added a separate function
reverse
for coordinate-based searches.
v1.2.0
New features
- [CORE] We have added support for Mapbox IDs in search results. A new field called mapboxId is added to BaseSearchResult, SearchResult, CategoryResult, and OfflineSearchResult. Mapbox ID is stable, and developers can store it for lookup purposes.
- [Offline search] We have added POI (Points of Interest) support to offline search. Developers can now use POIs in offline search in addition to Addresses and Places.
- [Offline search] We have added a bounding box filter for offline search. Developers can now use the bounding box to limit the searchable area in the offline mode, increasing search response time for offline queries.
Breaking changes
- [Address Autofill, Place Autocomplete] Search is now a two-step action. It returns
Suggestions
(without the geo coordinate and routable points) at the first step andResult
(with the geo coordinate and routable points) after the suggestion is selected. Thus, thecoordinate
field is no longer available inSuggestion
. - [Address Autofill, Place Autocomplete] Added a separate function
reverse
for coordinate-based searches.
Bug fixes
- [Offline search] Don't return results with the empty name
v1.2.0-rc.1
New features
- [CORE] We have added support for Mapbox IDs in search results. A new field called
mapboxId
is added toBaseSearchResult
,SearchResult
,CategoryResult
, andOfflineSearchResult
. Mapbox ID is stable, and developers can store it for lookup purposes. - [Offline search] We have added a bounding box filter for offline search. Developers can now use the bounding box to limit the searchable area in the offline mode, increasing search response time for offline queries.
Breaking changes
- [Address Autofill, Place Autocomplete] Search is now a two-step action. It returns' Suggestions' (without the geo coordinate and routable points) at the first step and
Result
(with the geo coordinate and routable points) after the suggestion is selected. Thus, thecoordinate
field is no longer available inSuggestion
. - [Address Autofill]
suggestions()
is renamed toreverseGeocoding()
.
v2.0.0-beta.4: Bump to 2.0.0-beta.4 (#205)
* Bump to 2.0.0-beta.4
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