Android GeoCoder 指定要搜索的国家/地区?

发布于 2024-10-01 00:06:43 字数 345 浏览 1 评论 0原文

我可以 指定地理编码器将在其中搜索的正方形,但我找不到指定特定国家/地区的方法。不幸的是,我的国家不是四边形的;(我应该做什么?使用另一个反向地理编码服务?

我想构建一个搜索框,用户可以在其中搜索城市(带有自动建议)。每次击键时当前搜索查询将被传递到地理编码器。

I can specify a square where the Geocoder shall search in, but I found no way to specify a certain country. Unfortunately, my country isn't quadrangular ;( What should I do? Use another reverse geocoding service?

I'd want to build a search box where the user can search for a city (with auto suggestion). On every keystroke the current search query is going to be delivered to the Geocoder.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一刻暧昧 2024-10-08 00:06:43

如果有帮助的话,官方地理编码 API 可以进行区域偏向。它将要求您使用他们的 Web API 而不是 Android API。

If it's any help, the official Geocoding API can do regional biasing. It would require you to use their web API instead of the Android API.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文