v2.3.1
yandex_geocoder
将地理坐标转换为地址以及反之亦然的 API
51喜欢 563近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
将地理坐标转换为地址以及反之亦然的 API
以下为英文项目原文快照,最新内容请访问 GitHub。
The geocoder helps to determine the coordinates of an object by its address or, conversely, to set the address by its coordinates.
Add this to your package's pubspec.yaml file:
dependencies:
yandex_geocoder: 2.3.1
To work you will need Api Key, a key to work with Yandex API. It can be obtained in the personal account of developer.
final YandexGeocoder geocoder = YandexGeocoder(apiKey: 'Your Api Key');
final GeocodeResponse geocodeFromPoint = await geocoder.getGeocode(ReverseGeocodeRequest(
pointGeocode: (55.771899,37.597576),
lang: Lang.enEn,
));
final GeocodeResponse geocodeFromAddress = await geocoder.getGeocode(DirectGeocodeRequest(
addressGeocode: 'Moscow, 4th Tverskaya-Yamskaya street, 7',
lang: Lang.enEn,
));
The Example is in the corresponding folder
依赖清单 6 项
^1.18.0^1.2.0^4.8.1^2.4.8{"sdk":"flutter"}^6.7.1先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗