Locations uploaded to Places not appearing in Quer

2019-06-08 05:45发布

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

2条回答
Deceive 欺骗
2楼-- · 2019-06-08 06:15

Only Place Report Requests submitted from a small number of trusted applications are being moderated for integration into Google Places.

If you wish to add a new place that can be accessed outside of your application you can follow the Google Maps help instructions to Add a new place.

If you are a business owner, you can add and verify your business on Google Maps using Google Places for Business.

Another alternative to add places to Google Maps is to submit an edit through Google Map Maker by following the instructions from Google Map Maker Help.

Your added place will appear in Google Maps after it has been reviewed and accepted.

查看更多
成全新的幸福
3楼-- · 2019-06-08 06:22

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.

enter image description here

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?

查看更多
登录 后发表回答