google-places-api

Getting relevant (rather then pseudo-random) results with google maps places API

拥有回忆 提交于 2019-12-25 05:04:59
问题 I read all the posts (here and elsewhere) about the Places API and still can't find a solution. I have a form in which the user can input the street and either the number or the building name (like a mall). I want to validate the info via geocode (if it's a number) or places (if it's a name) before submitting and showing the map as I need the exact address, but the Places search gives me pseudo-random results. For example: var cityCenter = new google.maps.LatLng(1.30563, 103.83751); var

Why does my autocomplete search fiels freeze when trying to pull cities from Google Places API?

痞子三分冷 提交于 2019-12-25 04:30:39
问题 In my web page base template, I have links for JQuery, Google Places API, plugin for autocomplete and JS code to to call the functionality. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDaa7NZzS-SE4JW3J-7TaA1v1Y5aWUTiyc&libraries=places"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/geocomplete/1.7.0/jquery.geocomplete.js"></script> <script> $

Get opening hours of place -Android

╄→尐↘猪︶ㄣ 提交于 2019-12-25 04:18:13
问题 How to get opening hours of the place in android, I have latitude and longitude of the current location. Setp-1: I have get the place id by calling this API 'http://maps.googleapis.com/maps/api/geocode/json?latlng=39.7837304,-100.4458825&sensor=true' The response of this api return the array of address, from this array will get the first address place ID. Sept-2:- After getting place id pass this place id into this API 'https://maps.googleapis.com/maps/api/place/details/json?placeid="+placeId

Determining the Place according to latitude and longitude

不羁的心 提交于 2019-12-25 03:57:15
问题 I'm using google maps API to determine a building(Place) which is a Google Point of interest. I'm trying to get the place reference for future use. but due to API limitation or whatever limitation. I can't get the exact place. As an example below latitude longitude belongs to "The university of Sydney". Using this code I could derive University of Sydney but as second result and also I tried many lat long but sometime appropriate result comes in the end or first. These places are prominent to

why no of request is different from used limit in google place api

╄→尐↘猪︶ㄣ 提交于 2019-12-25 03:49:26
问题 I have made request to google place API no of request is near about 1500-1600 but in used quota limit showing 15800 . I have verified my account. request: $baseurl = "https://maps.googleapis.com/maps/api/place/textsearch/json"; why ? 回答1: You are using a textSearch. Text Search has a 10 times multiplier. From the documentation: The Google Places search services share the same usage limits. However, the Text Search service is subject to a 10-times multiplier . That is, each Text Search request

React google place autocomplete not providing photo_ref

扶醉桌前 提交于 2019-12-25 03:21:43
问题 I am integrating google place autocomplete here is the response I am getting But not getting photo_reference "photo_reference": "CmRaAAAAsenfgCCe_GGl3-ekxAP2CVLJCUYk-Egp-AyE8894bNpkhOaLliIY2WhR8PnF88NYKj7JuLqla0YCjaDYqta_2uDf2zB2_LTefzdHZj0bIt7BllyUQikoQlaCmUjYeaOCEhDn7j-qk3BLIzhaoSIRXFEBGhRioSf-plEkiNMC2S4Xd5BJnjDOZg" Is there any option to get the photo_reference in it? Thank you!!! 来源: https://stackoverflow.com/questions/53479415/react-google-place-autocomplete-not-providing-photo-ref

Place present on Google Maps, but not showing in Places API call

Deadly 提交于 2019-12-25 02:57:52
问题 I am using Google Places API in my Android app to detect bike shops in the user's proximity. I have a problem with this shop (Joy Ride Bicycles): https://www.google.ro/maps/place/Joy+Ride/@47.03567,-122.818342,17z/data=!3m1!4b1!4m2!3m1!1s0x54910b4572c99c39:0x340b219b8ac15ba1 Although it's present on Google Maps, it isn't returned when I make a call to the Google Nearby Places API. I have tried with different ranges locations. I've had similar issues with other shops. Has anyone else

getPlaceById() fails to return data on Android google places API / resultCallback not getting called

浪尽此生 提交于 2019-12-25 02:56:17
问题 I cannot retrieve Place Details using the Google Places API on Android. I'm calling getPlacyById() for specific place_id. Inside an Android activity I setup a googleApiClient and call connect(). The apiClient connects successfully. Then for testing purposes I call getPlaceById() using a hardcoded place_id and a resultCallback. However, the resultCallback never gets called. The hardcoded place_id is tested through javascript (using the javascript Google Maps API) and returns valid data. but

Requesting JSON from Google Maps gives me REQUEST_DENIED

若如初见. 提交于 2019-12-25 02:09:37
问题 I am wondering why my request keeps getting denied. I'm pretty sure my API key is correct, I selected android in Google Console, gave it my sha1 with my project name and grabbed the API key and stuck it in my project. However, it still keeps giving me REQUEST_DENIED if I try anything. I'm assuming it's something to do with how I am constructing the URL or if the base URL is broken, or it could be the manner I am requesting the data. I'm very new to this and only started playing around a few

Batch requests for Google Places (Javascript v3)

大兔子大兔子 提交于 2019-12-24 22:32:09
问题 Is there a way to batch requests for the Places Library in JavaScript? I've seen this page, so I've gathered it's possible, at least, I'm just not sure how it'd work with Places API. I need to run a request for every place I find on google maps (this leads to a lot of OVER_QUERY_LIMIT exceptions). I've given thought to queuing the requests and running them a second apart, but if a user gets several hundred places queued up, a fair amount of results are going to go missing if the user closes