一個 Flutter 套件,提供對 Google Maps Web Services 的存取,讓開發者能夠將地理編碼、地點搜尋、路線規劃、距離矩陣、照片取得、時區資訊以及靜態地圖等功能整合至其應用程式中。此套件支援多個平台,包含 Android、iOS、Web、macOS、Windows 與 Linux。該套件透過乾淨的 Dart 界面簡化 API 互動,讓開發者無需手動管理 HTTP 請求即可輕鬆取得地圖相關資料。非常適合需要位置智慧與地圖功能的應用程式。
適用情境
將地址轉換為座標
搜尋附近地點
計算路線和出行方向
獲取位置之間的距離和時長
顯示靜態地圖影像
根據位置獲取時區詳細資訊
主要特色
支援所有主要的 Google 地圖 Web 服務
跨平台相容性
簡單直覺的 Dart API
內建錯誤處理
非同步請求管理
輕量且易於整合
適合對象
位置感知應用
旅行和導航應用
房地產和房產經紀人
配送和物流服務
旅遊和發現平台
任何需要地圖數據整合的應用程式
使用建議
需要一個 Google Cloud Platform API 金鑰
根據使用層級應用速率限制
高使用量可能會產生額外費用
所有操作都需要互聯網連接
API 密鑰必須在生產環境中受到保護
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
flutter_google_maps_webservices
General Information
This is the Dart Library for Google Maps Webservices.
You can find the Google Maps Platform Documentation here, but if you're new to this, you may want to start here.
API Key
To use this library you need a Web API key. Follow these steps to acquire the key relevant to your particular Dart application.
These keys are not to be used individually as Android or iOS API keys, but they are instead meant to be used in your Dart application.
In case of using a proxy the baseUrl can be set.
The apiKey is not required in case the proxy sets it. (Not storing the apiKey in the app is good practice)
Feature Requests and Issues
Please file feature requests and bugs at the issue tracker.