gpt4 book ai didi

android - 在谷歌地图上显示很多需要地理编码的位置?

转载 作者:行者123 更新时间:2023-11-30 01:56:08 25 4
gpt4 key购买 nike

我正在编写一个 Android 应用程序,可以显示人们在 Google map 上的网站上提供的“优惠”。我目前在数据库中有 20-30k 个报价,但它们是按地址而不是坐标存储的,因此在将它们显示在 Google map 上之前,我需要对地址进行地理编码以获取坐标。优惠的位置不会改变,因此我只需要对每个地址进行一次地理编码。

这是我的问题。我需要对数据库中已有的 20k 个报价地址和所有 future 的报价(大约 100 个/天)进行地理编码。但是看完The Google Geocoding API TOS我意识到存储地理编码结果是非法的。

Also note that the caching of geocoding results is only allowed for the purpose of improving the performance of your application, and cached results may not be stored for more than 30 days. For example, you must not use the results to create an independent database of places or other local listings information.

所以我的问题是我应该如何处理这个问题?我想在服务器端进行地理编码,然后将报价的坐标发送到应用程序进行显示。在客户端对所有地址进行地理编码会太慢而且有点毫无意义,因为地址永远不会改变。

如果我在服务器端保存地理编码坐标,这会属于

caching of geocoding results is only allowed for the purpose of improving the performance of your application

Google map 服务条款中的条款?

最佳答案

如何使用 http://geocoder.opencagedata.com/api.html截至目前,它们允许无限时间缓存。

关于android - 在谷歌地图上显示很多需要地理编码的位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32180072/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com