Skip to content

Commit

Permalink
Merge pull request #18 from MadBrains/2.3.1
Browse files Browse the repository at this point in the history
fix: change lat and lon position
  • Loading branch information
KolasikOmetov authored Apr 5, 2024
2 parents 2c78330 + aea07dd commit 542e7b3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The geocoder helps to determine the coordinates of an object by its address or,
Add this to your package's pubspec.yaml file:
```yaml
dependencies:
yandex_geocoder: 2.3.0
yandex_geocoder: 2.3.1
```
## Usage
Expand Down
2 changes: 1 addition & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Для подключения добавьте в файл Pubspec зависимости:
```yaml
dependencies:
yandex_geocoder: 2.3.0
yandex_geocoder: 2.3.1
```
## Использование
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class _MyHomePageState extends State<MyHomePage> {
children: <Widget>[
Column(
children: <Widget>[
const Text('latitude: 37.597576, longitude: 55.771899'),
const Text('latitude: 55.771899, longitude: 37.597576'),
Text(address),
],
),
Expand Down
4 changes: 2 additions & 2 deletions lib/src/models/point_converter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class PointConverter implements JsonConverter<PointRecord?, String?> {
final List<double?> splitPos =
json.split(' ').map((String e) => double.tryParse(e)).toList();

final double? lat = splitPos.first;
final double? lon = splitPos.last;
final double? lat = splitPos.last;
final double? lon = splitPos.first;

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

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: yandex_geocoder
description: API to translate geographic coordinates into an address and vice versa
version: 2.3.0+1
version: 2.3.1
repository: https://github.com/MadBrains/Yandex-Geocoder-Flutter
issue_tracker: https://github.com/MadBrains/Yandex-Geocoder-Flutter/issues
homepage: https://madbrains.ru/
Expand Down

0 comments on commit 542e7b3

Please sign in to comment.