其他分享
首页 > 其他分享> > android-在没有Google Maps的情况下使用Google Places API,但在OSM地图上显示所选结果

android-在没有Google Maps的情况下使用Google Places API,但在OSM地图上显示所选结果

作者:互联网

我们想在我们的android应用程序中使用Google Maps API和Places Autocomplete API.在使用之前,我们希望明确您使用这些API的“使用条款”.我们检查了Google文档.但是我们仍然有一些查询,如下所示:

>我们要使用2个全屏视图.在第一个视图中,将在该搜索按钮上方显示OpenStreet地图.如果用户单击该搜索按钮,将打开第二个视图,其中将有一个搜索栏和一个空间来显示搜索结果.在这里,我们要使用Places Autocomplete API来搜索地点.这样我们就可以在此页面中添加“由Google强力驱动”徽标.
 选择结果后,用户将被重定向到第一个视图(地图页面),并且该位置将在此处显示为标记.您能否确认这是可以接受的,并且是在没有Google Map的情况下使用Places API的正确方法吗?如果没有,请让我知道正确的做法.
>如果我们在Android应用程序中使用Google Maps,在地图上显示正在行驶的汽车或卡车是否可以接受?有可用的付费服务使用此功能吗?

谢谢.

解决方法:

关于第一个问题,您应遵循Google Maps API服务条款的10.4(d)段落,内容如下:

No use of Content without a Google map. Unless the Maps APIs Documentation expressly permits you to do so, you will not use the Content in a Maps API Implementation without a corresponding Google map. For example, you may display Street View imagery without a corresponding Google map because the Maps APIs Documentation expressly permits this use.

据我所知,Premium计划具有一种特殊的许可类型,该​​许可类型允许在没有地图的情况下使用Google Maps API数据,但是您应该购买该许可以便符合要求.

提到第二个问题,您将要实现一个资产跟踪应用程序,该应用程序还需要根据ToS的10.4(c,iv)段获得Premium计划资产跟踪许可证:

No asset-tracking unless you have purchased the applicable enterprise license. Unless you have purchased an applicable Premium Plan or Maps APIs for Work license that expressly permits you to do so, you will not use the Service or Content for commercial asset-tracking or in Maps API Implementations whose primary purpose is to assess vehicle insurance risks.

来源:https://developers.google.com/maps/terms-20180207#10-license-restrictions

在这两种情况下,您似乎都需要高级计划许可,因此,我建议与Google销售团队联系,与他们讨论这个问题:

https://developers.google.com/maps/contact-sales/

希望我的回答能澄清您的疑问!

标签:google-places-api,google-maps,google-search-api,ios,android
来源: https://codeday.me/bug/20191025/1928757.html