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

套件詳情v0.2.1

geocoder_offline

用於超快速離線反向地理編碼的套件。搜尋將在您選擇的檔案中進行。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
850
喜歡數
25
Pub 分數
140

安裝套件

flutter pub add geocoder_offline

套件介紹

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

一個高效率的離線反向地理編碼套件,可利用使用者提供的資料檔實現快速的位置到地址查詢。專為無網際網路連接環境設計,支援多個平台,並透過處理本地地理資料提供精確結果。適合需要隱私保護、低延遲或在偏遠地區穩定運作的應用程式。

適用情境

  • 離線地圖應用
  • 注重隱私的位置服務
  • 遠端區域導航
  • 低延遲地理編碼
  • 欄位資料收集
  • 旅行與物流應用

主要特色

  • 快速離線反地理編碼
  • 支援自訂資料檔案
  • 跨平台相容性
  • 最小依賴足跡
  • 高準確度,使用本機資料
  • 無需網路

適合對象

  • 需要離線功能的應用程式
  • 注重使用者隱私的開發者
  • 遠端地區的基於位置的工具
  • 具有嚴格資料控制需求的應用程式
  • 對效能敏感的地點定位功能

使用建議

  • 需要手動管理數據文件
  • 檔案大小影響應用程式套件
  • 數據準確性取決於輸入檔案的品質
  • 限於預加載的地圖資料
  • 不適合即時全域更新
  • 初始設定需要資料準備

原始 README

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

Offline Geocoder

Dart library for super-fast offline reverse geocoding. Package use k-d tree for a search of the nearest location in a given file. One when Geocoder is initialized, search for location is super-fast, about 4-5 milliseconds.

Data

For using the reverse geocoding library you need to provide а file with data about places among you want to run reverse geocoding. In examples you can see how to use а library with two example files:

  1. GeoNames data file with all world cities with a population above 15 000
  2. USGS data file with USA cities with a population above 5000.

Library allows you to use any other file who has at least data about name, latitude, and longitude of places you want to search.

Usage

Import
import 'package:geocoder_offline/geocoder_offline.dart';
Initialization
var geocoder = GeocodeData(
    File('/example/NationalFedCodes_20191101.csv').readAsStringSync(), //input string
    'FEATURE_NAME', // place name header
    'STATE_ALPHA', // state/countery header
    'PRIMARY_LATITUDE', // latitute header
    'PRIMARY_LONGITUDE', // longitude header
    fieldDelimiter: ',', // fields delimiter
    eol: '\n');
Reverse geocoding
List<LocationResult> result = geocoder.search(41.881832, -87.623177);

Features and bugs

If you any problem using library or you have any new needs, please file feature requests and bugs at the issue tracker.

所屬分類

依賴

依賴清單 2 項

  • csv^5.0.0
  • kdtree^0.2.0

原始碼儲存庫

使用此套件的專案

暫無相關資料。