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

套件詳情v1.0.2

geocoder_buddy

無需 API key 即可進行正向、反向地理解碼和地址搜尋。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
373
喜歡數
30
Pub 分數
150

安裝套件

flutter pub add geocoder_buddy

套件介紹

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

Geocoder Buddy 是一個 Flutter 套件,可實現正向與反向地理編碼,以及地址搜尋,無需 API 金鑰。它透過利用多個平台的內建地理位置服務,簡化基於位置的功能。適用於需要快速解析地址或進行座標轉換的應用程式,可在 Android、iOS、Web、macOS、Windows 與 Linux 上順暢運作。此套件輕量且注重隱私,避免為地理編碼任務引入外部相依性。

適用情境

  • 從座標查找地址
  • 地址座標轉換
  • 離線友善的位置搜尋
  • 跨平台地理定位功能
  • 注重隱私的應用程式開發

主要特色

  • 不需要 API 金鑰
  • 支援正向與反向地理編碼
  • 適用於所有主要平台
  • 輕量且快速
  • 內建位址搜尋
  • 無外部服務依賴

適合對象

  • 具有定位需求的行動與網頁應用程式
  • 重視使用者隱私的應用程式
  • 開發者避免 API 成本
  • 原型化位置功能
  • 簡單的地理編碼需求

使用建議

  • 限於基本地理編碼精確度
  • 依賴設備的原生地理定位服務
  • 不適合高精度企業使用
  • 無即時更新
  • 可能因平台實作而異

原始 README

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

Features

  • Easy To Use
  • Fast & Secure
  • No Api Key Required
  • More Detailed Data
  • Search Locations Without Api Key

Getting Started

Run This Command in Terminal or Install in Your Way

flutter pub get geocoder_buddy

Searching Location

// GBSearchData Class Porvided By geocoder_buddy
List<GBSearchData> data = await GeocoderBuddy.query(query);

GBSearchData Class

  int placeId;
  int id;
  List<String> boundingbox;
  String lat;
  String lon;
  String displayName;
  int placeRank;
  double importance;

Converting GBSearchData To GBData

// GBData Class Porvided By geocoder_buddy
GBData data = await GeocoderBuddy.searchToGBData(GBSearchData data);

Getting Details From Latitude/Longitude

GBLatLng position = GBLatLng(38.8951,-77.0364);
GBData data = await GeocoderBuddy.findDetails(position);

GBData Class

  int placeId;
  String osmType;
  int id;
  String lat;
  String lon;
  int placeRank;
  double importance;
  String displayName;
  // Address Class Porvided By geocoder_buddy
  Address address;
  List<String> boundingbox;

Address Class

  String road;
  String houseNumber;
  String village;
  String city;
  String municipality;
  String county;
  String stateDistrict;
  String state;
  String iso31662Lvl4;
  String postcode;
  String country;
  String countryCode;

Buy Me A Coffee

License

See LICENSE

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。