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

套件詳情v0.2.1

geocoder

正向與反向地理編碼。

近 30 天下載
1200
喜歡數
270
Pub 分數
15

安裝套件

flutter pub add geocoder

套件介紹

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

geocoder 套件為 Flutter 應用程式提供正向與反向地理編碼功能。它允許使用者將位址轉換為地理座標(緯度與經度),反之亦然。由 aloisdeniel.com 所開發,可無縫整合至 Flutter 專案,並透過統一介面支援多種地理編碼服務。此套件設計簡潔且可靠,非常適合需要位置相關功能之應用程式,例如地圖、地址搜尋或位置追蹤。它是開源的,並託管於 GitHub,以確保透明度並促進社群貢獻。

適用情境

  • 地址轉座標查詢
  • 座標轉地址轉換
  • 地圖標記位置
  • 應用中的位置搜尋
  • 基於地理位置的服務
  • 用戶位置標記

主要特色

  • 正向地理編碼
  • 逆地理編碼
  • 跨平台支援
  • 簡單 API
  • Open-source
  • 可擴充的服務整合

適合對象

  • 具有地圖整合的行動應用程式
  • 位置感知應用
  • 旅行與配送應用
  • 需要地址解析的應用程式
  • 尋求輕量級地理編碼的開發者
  • 使用 Google 地圖或類似服務的專案

使用建議

  • 需要互聯網連接
  • 依賴外部地理編碼服務
  • 可能會應用速率限制
  • 無內建快取
  • 有限的平台特定自訂
  • 服務可用性因地區而異

原始 README

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

Really sorry for the lack of updates. I'm currently really busy and can't really give you an ETA for the next release.

In the meantime, you can try the geocoding package which should offer almost the same functionnalities.

geocoder

Forward and reverse geocoding.

Usage

Import package:geocoder/geocoder.dart, and use the Geocoder.local to access geocoding services provided by the device system.

Example:

import 'package:geocoder/geocoder.dart';

// From a query
final query = "1600 Amphiteatre Parkway, Mountain View";
var addresses = await Geocoder.local.findAddressesFromQuery(query);
var first = addresses.first;
print("${first.featureName} : ${first.coordinates}");

// From coordinates
final coordinates = new Coordinates(1.10, 45.50);
addresses = await Geocoder.local.findAddressesFromCoordinates(coordinates);
first = addresses.first;
print("${first.featureName} : ${first.addressLine}");

You can alternatively use Geocoder.google member for requesting distant data from google services instead of native ones.

You will find links to the API docs on the pub page.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案