- Fixed
externalIds
inSuggestionResponse
andRetrieveResonse
class and generated *.g.dart files again to include these changes. - Fixed bug where
proximity
would always resolve toNoProximity()
even when supplied with a value.
- Fixed
externalIds
inSuggestionResponse
class. Mapbox has changed the response forexternalIds
and it can be nullable now.
- Huge code refactoring by @LorenzSchueler. Json parsing is now done using json_serializable and json_annotation packages.
- Package Upgrades
- Minor bug fixes
- Added color dependency to the package so that I don't have to manage code related to it.
- Updated Readme with examples on how to use new added dart 3.0 features
- Introduced MapBoxSearch.init() method to initialize the API Key for the package (This is not a breaking change since the API Key can be passed to every class that uses the package)
- Require Dart 3.0 to use the package
- Breaking Change:
- Instead of throwing exceptions, the package now returns
ApiResponse
Record which can be eitherSuccess
orFailure
and can be handled usingfold
method. - Location class is now converted to a record.
- List of coordinates are now converted to a record
(lat: double, long: doube)
whereever possible.
- Instead of throwing exceptions, the package now returns
- Fixed Parsing issue for Search Results
- Added maki_icons to enum_generating script to keepup with new icons
- This will be last version to support dart < 3.0
- Require Dart 2.19 to use the package
- PlaceSearch and ReverseGeoCoding classes are now merged into one class called GeoCoding with two methods
getPlaces
andgetAddress
since both of them are using the same API.
- MapBox's new SearchBox API is added to the package.
- Overal code refactoring
- Added BBox in Forward Geododing API (As per MapBox API we can use BBox to get the results in a specific area)
- Fixed Static Image URL generation issue
- Added Proximity Type to Search (As per MapBox API we can use location or ip address to get the nearest results)
- Optimized the code and added tests for reverse geocoding class too
- Fixed some issues regarding static image to use custom markers
- Changed zoom level to use double instead of int(Fix #61)
- PlaceType enum to string conversion fixed
- Homepage URL fixed
- Added Places type to filter Search [PR #48]
- Migrate to null safety [Pull Request #43]
- Removed Color dependency [Pull Request #44]
- Updated http dependency (PR #41)
- Updated dependencies
- Major missing feature added
- Maki Icons can now be used in marker icon
- Added Missing Address Attribute to the fetched MapBoxPlace Data (PR by @ juampiq6).
- renamed
MapBoxStaticImage
to make the naming in this library more consistentStaticImage
- simplified the url serialisation
- added the auto attribute to static images
- added simple unit tests for static images
- Breaking changes(migration from v1.x ro v2.0)
- Removed 'flutter' dependency.
All Flutter code, including 'MapBoxPlaceSearchWidget' has been moved to library mapbox_search_flutter. Check README for more details.
- Added Places Search for querying places by text.
- Fixed
limit
andcountry
parameters for ReverseGeocoding.
- Added 'address' property to the Properties class.
- Search text in search Widget localized
- Reverse Geocoding query type set to dynamic(String or double)
- Reverse Geocoding returning empty list bug Solved
Feature:
- Reverse Geocoding Added
Feature:
- add defaultPathPolyline and add assert(Merge Request)
Initial release.
Feature:
- Places Search with prediction
- Static Image with marker
- Static Image without marker
- Static Image with Polyline path