Skip to content

Commit 58df334

Browse files
authored
Add support for placemarkFromAddress in platform interface (Baseflow#178)
1 parent 2a2dca8 commit 58df334

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

geocoding_platform_interface/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.1.0
2+
3+
- Adds `placemarkFromAddress` method to the platform interface.
4+
15
## 3.0.0
26

37
- **Breaking Change** Changes to the platform interface calls, the locale is now set in a separate call.

geocoding_platform_interface/lib/src/geocoding_platform_interface.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,17 @@ abstract class GeocodingPlatform extends PlatformInterface {
7272
throw UnimplementedError(
7373
'placemarkFromCoordinates() has not been implementated.');
7474
}
75+
76+
/// Returns a list of [Placemark] instances found for the supplied address.
77+
///
78+
/// In most situations the returned list should only contain one entry.
79+
/// However in some situations where the supplied address could not be
80+
/// resolved into a single [Placemark], multiple [Placemark] instances may be
81+
/// returned.
82+
Future<List<Placemark>> placemarkFromAddress(
83+
String address,
84+
) {
85+
throw UnimplementedError(
86+
'placemarkFromAddress() has not been implementated.');
87+
}
7588
}

geocoding_platform_interface/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: A common platform interface for the geocoding plugin.
33
homepage: https://github.com/baseflow/flutter-geocoding/tree/main/geocoding_platform_interface
44
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
55
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6-
version: 3.0.0
6+
version: 3.1.0
77

88
dependencies:
99
flutter:

0 commit comments

Comments
 (0)