FLUTTER ECOSYSTEM

MadBrains/Yandex-Geocoder-Flutter

지리적 좌표를 주소로, 그 반대로 주소를 지리적 좌표로 변환하는 API

Yandex-Geocoder-Flutter 프로젝트 이미지
Stars
5
Forks
6
최근 푸시(UTC)
2024. 4. 5.
프로젝트 상태
활성
Mad Brains GitHub avatar
GITHUB Organization

Mad Brains ↗

AI, mobile, web development / Software outsource company

언어DartShellMakefileSwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 6 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

https://firebasestorage.googleapis.com/v0/b/mad-brains-web.appspot.com/o/banner.png?alt=media https://firebasestorage.googleapis.com/v0/b/mad-brains-web.appspot.com/o/banner_geocoder.png?alt=media&token=59013dd3-f0c1-4f91-a1b9-37a9ca1b3066

Flutter Yandex Geocoder

pub package License

Read this in Russian

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.

https://firebasestorage.googleapis.com/v0/b/mad-brains-web.appspot.com/o/get_started_stroke.png?alt=media

Subscribe for the latest updates:
https://firebasestorage.googleapis.com/v0/b/mad-brains-web.appspot.com/o/follow_us_stroke.png?alt=media


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:

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.

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 is in the corresponding folder