Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madbrains/yandex-geocoder-flutter
API to translate geographic coordinates into an address and vice versa
https://github.com/madbrains/yandex-geocoder-flutter
dart flutter geocoding yandex-maps
Last synced: 3 months ago
JSON representation
API to translate geographic coordinates into an address and vice versa
- Host: GitHub
- URL: https://github.com/madbrains/yandex-geocoder-flutter
- Owner: MadBrains
- License: mit
- Created: 2021-02-15T11:14:51.000Z (almost 4 years ago)
- Default Branch: dev
- Last Pushed: 2024-04-05T04:46:37.000Z (9 months ago)
- Last Synced: 2024-10-01T16:39:53.618Z (3 months ago)
- Topics: dart, flutter, geocoding, yandex-maps
- Language: Dart
- Homepage: https://pub.dev/packages/yandex_geocoder
- Size: 1.25 MB
- Stars: 6
- Watchers: 4
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Flutter Yandex Geocoder
[![pub package](https://img.shields.io/pub/v/yandex_geocoder.svg)](https://pub.dartlang.org/packages/yandex_geocoder)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)[Read this in Russian](README.ru.md)
The geocoder helps to determine the coordinates of an object by its address or, conversely, to set the address by its coordinates.
[Available API Documentation][documentation].
Subscribe for the latest updates:
## SDK Features
* Direct geocoding. Used to determine coordinates by object name or address. The API takes into account common misprints and offers several suitable variants. For example, you can convert a user-specified address into coordinates.
* Reverse geocoding. It is used to determine the address of an object by its coordinates. For example, you can select the nearest house on the map and get its name.
* Choosing the type of toponym you need.
* Restrict the search to a specified area.
* Answer language and regional features of the map.## Installing
Add this to your package's pubspec.yaml file:
```yaml
dependencies:
yandex_geocoder: 2.3.1
```## Usage
To work you will need **Api Key**, a key to work with Yandex API. It can be obtained in the [personal account of developer][account].```dart
final YandexGeocoder geocoder = YandexGeocoder(apiKey: 'Your Api Key');final GeocodeResponse geocodeFromPoint = await geocoder.getGeocode(ReverseGeocodeRequest(
pointGeocode: (55.771899,37.597576),
lang: Lang.enEn,
));final GeocodeResponse geocodeFromAddress = await geocoder.getGeocode(DirectGeocodeRequest(
addressGeocode: 'Moscow, 4th Tverskaya-Yamskaya street, 7',
lang: Lang.enEn,
));
```## Example
The [Example][example] is in the corresponding folder[documentation]: https://yandex.ru/dev/maps/geocoder/doc/desc/concepts/about.html
[account]: https://developer.tech.yandex.ru/?from=geocoder
[example]: https://github.com/MadBrains/Yandex-Geocoder-Flutter/tree/main/example/