一個用於精確大地測量與三角計算的 Dart 庫,可實現地理點之間的準確距離、方位與路徑計算。該庫支援使用球面幾何進行點與路徑操作,非常適合地圖與基於位置的應用程式。該庫與平台無關,可在 Android、iOS、Web、macOS、Windows 與 Linux 上順暢運行。對於需要高精度導航、路線規劃或空間分析的應用程式尤為有用。
適用情境
計算地理坐標之間的距離
計算點之間的方位角和航向
沿路徑生成航點
支援導航和路線可視化
在應用程式中執行地理空間分析
啟用精確的地圖投影
主要特色
高精度大地測量計算
支援點與路徑運算
跨平台相容性
球面三角學工具
輕量且無依賴
文件完整的 API
適合對象
導航應用開發者
GIS 與地圖應用
位置感知服務
路線規劃工具
空間資料處理
教育類地理空間專案
使用建議
需要十進制度輸入
未針對即時高頻率更新進行優化
限於球形地球模型
無內建地圖渲染
最適合離線或低延遲的地圖空間邏輯
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
Geodesy
About
A Dart library for implementing geodesic and trigonometric calculations based on a spherical Earth model for working with points and paths such as distances, bearings and destinations.
How to Use Geodesy
Commands
For Dart
dart pub add geodesy
For Flutter
flutter pub add geodesy
Import Geodesy
import'package:geodesy/geodesy.dart';
Class
The Geodesy class provides a collection of methods for performing various geodetic calculations, including distance calculations, point intersections, and more. This class is designed to work with geographical coordinates in the form of latitude and longitude.