Skip to content

Commit 542e7b3

Browse files
Merge pull request #18 from MadBrains/2.3.1
fix: change lat and lon position
2 parents 2c78330 + aea07dd commit 542e7b3

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The geocoder helps to determine the coordinates of an object by its address or,
3232
Add this to your package's pubspec.yaml file:
3333
```yaml
3434
dependencies:
35-
yandex_geocoder: 2.3.0
35+
yandex_geocoder: 2.3.1
3636
```
3737
3838
## Usage

README.ru.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
Для подключения добавьте в файл Pubspec зависимости:
3333
```yaml
3434
dependencies:
35-
yandex_geocoder: 2.3.0
35+
yandex_geocoder: 2.3.1
3636
```
3737
3838
## Использование

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class _MyHomePageState extends State<MyHomePage> {
3939
children: <Widget>[
4040
Column(
4141
children: <Widget>[
42-
const Text('latitude: 37.597576, longitude: 55.771899'),
42+
const Text('latitude: 55.771899, longitude: 37.597576'),
4343
Text(address),
4444
],
4545
),

lib/src/models/point_converter.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class PointConverter implements JsonConverter<PointRecord?, String?> {
1616
final List<double?> splitPos =
1717
json.split(' ').map((String e) => double.tryParse(e)).toList();
1818

19-
final double? lat = splitPos.first;
20-
final double? lon = splitPos.last;
19+
final double? lat = splitPos.last;
20+
final double? lon = splitPos.first;
2121

2222
if (lat == null || lon == null) return null;
2323

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: yandex_geocoder
22
description: API to translate geographic coordinates into an address and vice versa
3-
version: 2.3.0+1
3+
version: 2.3.1
44
repository: https://github.com/MadBrains/Yandex-Geocoder-Flutter
55
issue_tracker: https://github.com/MadBrains/Yandex-Geocoder-Flutter/issues
66
homepage: https://madbrains.ru/

0 commit comments

Comments
 (0)