搜尋套件、儲存庫與 APP 分類

套件詳情v2.3.1

yandex_geocoder

將地理座標轉換為地址以及反之亦然的 API

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
563
喜歡數
51
Pub 分數
160

安裝套件

flutter pub add yandex_geocoder

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

yandex_geocoder 套件為 Yandex 地理編碼 API 提供了 Flutter 界面,支援反向與正向地理編碼。它可將地理座標轉換為人類可讀的地址,並將地址轉換為座標。此套件專為跨平台使用設計,支援 Android、iOS、Web、macOS、Windows 與 Linux。該套件簡化了與 Yandex 地理定位服務的整合,非常適合需要基於位置的地址解析之應用程式。輕量且易於透過提供的 pub 命令進行設定。

適用情境

  • 從座標查找地址
  • 地址座標轉換
  • 基於位置的應用功能
  • 地圖標記放置
  • 地理位置資料增強
  • 跨平台地理編碼

主要特色

  • 正向地理編碼
  • 逆地理編碼
  • Yandex API 結合
  • 跨平台支援
  • 透過 pub 進行簡單設定
  • 輕量級實作

適合對象

  • 需要位址解析的應用程式
  • 使用 Yandex 地圖的開發者
  • 跨平台位置工具
  • 旅行或配送應用
  • 位置感知儀表板
  • 無後端的地理編碼解決方案

使用建議

  • 需要 Yandex API 密鑰
  • 依賴網路連接
  • 速率限制已套用
  • 僅限於 Yandex 的覆蓋範圍
  • 無離線支援
  • 地理編碼請求中的潛在延遲

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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.

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:

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

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。