google-places-api

Parse addresses through Google Places API

岁酱吖の 提交于 2019-12-14 04:09:19
问题 I have a huge(50k) db with addresses like 12340 Via Moura, San Diego, CA, United States 17029 Avenida Cordillera, San Diego, CA, United States 3324 Sandleheath, Sarasota, FL 34235, USA They were autocompleted with google Places Autocomplete js api and then stored in db. Now I need to get distinct parts state , city , zip ... etc of these addresses. Is it possible to do with some google of API? Any ideas? 回答1: I found a solution. Need to do two API calls to google places API. First call to get

Google place API pricing and queries uplift request

倖福魔咒の 提交于 2019-12-14 03:58:01
问题 Regarding the usage of Google Place API, Google allows 1000 queries per 24 hour for this Place API, and 100,000 queries per 24 hour if the account is verified with a credit card. Exceeding 100,000 queries per 24 hour, we can write to Google to request for an uplift. Does anyone have any experience with lifting the limits for the queries of Place API? And if you didn't get approved, what is the Google's pricing model for exceeding usage of the queries? Thanks 回答1: There is currently no pricing

caching of Google Places API results

感情迁移 提交于 2019-12-14 03:40:53
问题 I'm building a mobile app that lists posts, each post has a place attached to it. I want the list to be able to show distance from the user's location. without caching anything it would require to store the place reference for each post and while listing fetch the place's geometry from Google Places API, this sounds like a very bad idea. am I allowed to store the place's id, reference, name and geometry in my db and deliver it with my API? this is for performance purposes only another

How to grab json file from external url(PLACES API) using firebase functions

白昼怎懂夜的黑 提交于 2019-12-14 03:35:54
问题 So, I want to send a request from my app to Firebase using cloud funtions and then process process url and send back JSON file from places api WHAT I HAVE ALREADY DONE/HAVE=> After Setting up the project in console and getting firebase CLI created a cloud function as follows After following your comments this is my full function code: const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(); const rp = require('request-promise'); exports

Google place api is not supporting multiple types

瘦欲@ 提交于 2019-12-14 03:06:23
问题 when i provide the url given below , i am getting the proper rsults but String baseUrl = "https://maps.googleapis.com/maps/api/place/search/xml?location="; String last="&radius=20000&types=school&sensor=false&key="; URL = baseUrl + latitude + "," + longitude + last + API_KEY ; when i am trying to use multiple types like : school | university it showing forced closed....EX String baseUrl = "https://maps.googleapis.com/maps/api/place/search/xml?location="; String last="&radius=20000&types

google.maps.places.Autocomplete 502 error

混江龙づ霸主 提交于 2019-12-14 03:05:15
问题 I am using the google.maps.places.Autocomplete API and this morning I was getting a 502 Bad Gateway error. It lasted about 10 minutes and started working again. I assume this had to do with the service being unavailable. I was wondering how I can error handle when this happens. My (javascript) autocomplete code looks like this: $('#StartAddress').change(function () { google.maps.event.trigger(startAutocomplete, 'place_changed'); return false; }); var source, destination; var directionsDisplay

how to get total number of reviews from google reviews

爱⌒轻易说出口 提交于 2019-12-14 00:51:34
问题 With the google places api, it is possible to get details related to user reviews of a place. Looking at the documentation and it seems that I can get the following details: rating: 0-5 based on user rates and this is the average of all submitted reviews last 5 user ratings However, there doesn't seem to be any reference to total number of reviews count total for each rating ie, 5/5: 5 reviews, 4/5: 23 reviews, ... Anyone have an idea on where to get this information? 回答1: There is a new, yet

Google Maps Places Autocomplete - Uncaught TypeError: Cannot read property 'getPlace' of undefined

房东的猫 提交于 2019-12-14 00:35:18
问题 setAutocomplete() { this.originPlaceId = null; this.destinationPlaceId = null; this.travelMode = google.maps.TravelMode.WALKING; this.directionsDisplay.setMap(this.map); this.setMapControls(this.map); this.setupClickListener('changemode-walking', google.maps.TravelMode.WALKING); this.setupClickListener('changemode-transit', google.maps.TravelMode.TRANSIT); this.setupClickListener('changemode-driving', google.maps.TravelMode.DRIVING); console.log(this.originInput); this.originAutocomplete =

Google places autocomplete get the place type

孤人 提交于 2019-12-13 22:24:54
问题 I have a simple application where the user fills in the start and end point (with google places autocomplete) and then, with directions services, I draw the route on Google Maps. I can calculate the gas needed for that route, the tolls that the driver must pay etc. Its working fine so far. Now I have to check if the start point or end point is an airport (I assume that I have to check the place type) and I have no idea how to achieve that. I know that the places autocomplete object contains

Scope variable doesn't set

孤人 提交于 2019-12-13 19:22:48
问题 I got directive for address autocomplete and get places info. Also I have added a code for getting city id and the code worked in one of my past project, but not working now ( The data[0].place_id in the code have a correct value but scope.form.object.localityId is empty outside the function. PS scope.form.object... is declared in a parent controller of the directive and other variables are filling correct .directive('shAddressPredict', function(){ return { require: 'ngModel', link: function