Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for placemarkFromAddress in platform interface #178

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions geocoding_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.1.0

- Adds `placemarkFromAddress` method to the platform interface.

## 3.0.0

- **Breaking Change** Changes to the platform interface calls, the locale is now set in a separate call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,17 @@ abstract class GeocodingPlatform extends PlatformInterface {
throw UnimplementedError(
'placemarkFromCoordinates() has not been implementated.');
}

/// Returns a list of [Placemark] instances found for the supplied address.
///
/// In most situations the returned list should only contain one entry.
/// However in some situations where the supplied address could not be
/// resolved into a single [Placemark], multiple [Placemark] instances may be
/// returned.
Future<List<Placemark>> placemarkFromAddress(
String address,
) {
throw UnimplementedError(
'placemarkFromAddress() has not been implementated.');
}
}
2 changes: 1 addition & 1 deletion geocoding_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A common platform interface for the geocoding plugin.
homepage: https://github.com/baseflow/flutter-geocoding/tree/main/geocoding_platform_interface
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 3.0.0
version: 3.1.0

dependencies:
flutter:
Expand Down