上传到位置的位置未显示在查询中 [英] Locations uploaded to Places not appearing in Query

查看:96
本文介绍了上传到位置的位置未显示在查询中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Places API在Google网站上存储点数。总之,我开发了一组简单的Java类,它们将使用JSON和 Google API密钥来发布它。我用id,reference和status det recvd成功消息。让我说清楚,我不是企业客户,我不会向Google支付任何金钱来维持积分。

接下来,我制作了一个简单的HTML页面(而不是JSP)使用Google Maps和Places Javascript API构建,其中我的文本框已启用Places AutoComplete功能。我正在使用URL中的 Google API密钥来调用地图。 HTML页面正常工作。但是当我搜索我第一步输入的地方时,我无法检索它们。

我知道这些点在通过审核流程之前会被其他人使用。但是,Google文档说,它可以提供给上传它的应用程序。



a)Google如何识别哪个应用程序贡献了这一点?我想它应该是在发出添加位置请求时使用的加密的应用程序密钥。然而,目前还没有明确的指导。

b)其次,我如何检索我在第一步中提交的积分?



问候

Govindarajan

解决方案

谢谢我按照以下步骤获取API



a)登录到API控制台< a href =https://code.google.com/apis/console =nofollow noreferrer> https://code.google.com/apis/console
b)点击服务从左侧菜单链接。
c)激活了Google Maps API v3服务,Places API,Google协调中心,静态地图API(同一时间),但忽略Google 地图API v2 service
d)点击左侧菜单中的API访问链接。使用API​​访问页面中的API密钥,在简单API访问部分!



删除敏感信息后我的Google API控制台



我的理解是,启用Google后生成的API密钥Google地图和Google Maps API v3对于这两者都是常见的。这是我在Map JavaScript中使用的API,以及用于HTTP post数据的Java类。
$ b

当我使用浏览器应用程序的API密钥发布数据时,它发布了数据并我的状态为OK。按照您的逻辑,Google Places如何接受浏览器应用密钥?


I am using Google Places API to store points at Google site. In short, i developed a simple set of Java Classes that would make use of JSON and my Google API Key to post it. I recvd success message with the id,reference and status det. Let me make it clear that I am not an Enterprise customer and I am not paying any money to Google for maintaining the points.

Next, I made a simple HTML page(not JSP) built using Google Maps and Places Javascript API wherein i have text boxes enabled with Places AutoComplete facility. I am making use of the Google API Key in the URL to invoke the maps. The HTML page works fine. But when i search for the places which i entered in first step, i am unable to retrieve them.

I am aware that these points pass through a moderation process before it is made available to others. However Google Documentation says that it would available to the application which uploaded it.

a) How does Google identify which application contributed the point? I guess it should be the encrypted Application Key which is used at the time of placing an Add Place request. However there is no clear guidance on this.

b) Second, How can i retrieve the points that i submitted in the first step?

Regards

Govindarajan

解决方案

Thanks for answering.

I followed the following steps to obtain the API

a) Logged into APIs Console at https://code.google.com/apis/console b) Clicked the Services link from the left-hand menu. c) ACTIVATED the Google Maps API v3 service, Places API, Google Coordinate, Static Map API(ALL AT THE SAME TIME) but ignored Google Maps API v2 service d) Clicked the API Access link from the left-hand menu. Made use of the API key from the API Access page, in the Simple API Access section!

My Google API console after removing sensitive information

My understanding was that the API key generated after enabling Google Places and Google Maps API v3 would be common to both. It is this API which i used in Map JavaScript as well as in the Java classes for HTTP post of data.

When i posted the data using the API Key for browser Apps it posted the data and i got the status as OK. Going by your logic how did Google Places accept the Key for Browser Apps?

这篇关于上传到位置的位置未显示在查询中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆