Skip to content

Commit 81d9199

Browse files
updates documentation isPresent() (#222)
* updates documentation isPresent() * fixed typo * Update geocoding/CHANGELOG.md Co-authored-by: Maurits van Beusekom <[email protected]> --------- Co-authored-by: Maurits van Beusekom <[email protected]>
1 parent f03dfb7 commit 81d9199

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

geocoding/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.2.2
2+
3+
- Updates documentation for isPresent().
4+
- Removes unused `LocaleIdentifier` parameter for isPresent().
5+
16
## 2.2.1+1
27

38
- Reverts changes from version `2.2.1`, `2.2.1` should not be used. Use either version `2.2.1+1` or `3.0.0`.

geocoding/lib/geocoding.dart

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,10 @@ Future<List<Placemark>> placemarkFromCoordinates(
4545
longitude,
4646
);
4747

48-
/// Returns a list of [Location] instances found for the supplied address.
48+
/// Returns true if there is a geocoder implementation present that may return results.
49+
/// If true, there is still no guarantee that any individual geocoding attempt will succeed.
4950
///
50-
/// In most situations the returned list should only contain one entry.
51-
/// However in some situations where the supplied address could not be
52-
/// resolved into a single [Location], multiple [Location] instances may be
53-
/// returned.
5451
///
55-
/// Optionally you can specify a locale in which the results are returned.
56-
/// When not supplied the currently active locale of the device will be used.
57-
/// The `localeIdentifier` should be formatted using the syntax:
58-
/// [languageCode]_[countryCode] (eg. en_US or nl_NL).
59-
Future<bool> isPresent({
60-
String? localeIdentifier,
61-
}) =>
62-
GeocodingPlatform.instance!.isPresent();
52+
/// This method is only implemented on Android, calling this on iOS always
53+
/// returns [true].
54+
Future<bool> isPresent() => GeocodingPlatform.instance!.isPresent();

geocoding/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: geocoding
22
description: A Flutter Geocoding plugin which provides easy geocoding and reverse-geocoding features.
3-
version: 2.2.1+1
3+
version: 2.2.2
44
repository: https://github.com/baseflow/flutter-geocoding/tree/main/geocoding
55
issue_tracker: https://github.com/Baseflow/flutter-geocoding/issues
66

0 commit comments

Comments
 (0)