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
flutterpubgetgeocoder_buddy
Searching Location
// GBSearchData Class Porvided By geocoder_buddyList<GBSearchData> data = awaitGeocoderBuddy.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_buddyGBData data = awaitGeocoderBuddy.searchToGBData(GBSearchData data);
Getting Details From Latitude/Longitude
GBLatLng position = GBLatLng(38.8951,-77.0364);
GBData data = awaitGeocoderBuddy.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_buddyAddress address;
List<String> boundingbox;