google-places-api

Google api response time

别说谁变了你拦得住时间么 提交于 2019-12-24 18:41:28
问题 I am using google RESTApis (geocoder api and google places detail api) Each time I hit a api the response time varies i.e if for first hit it is giving me a response time of 2 second,for the second hit it is taking upto 6 to 8 second. Please help me out with this how can I reduce the response time? Thanks 来源: https://stackoverflow.com/questions/48554031/google-api-response-time

google Places API retriving an photos using getPlacePhotos

橙三吉。 提交于 2019-12-24 13:45:05
问题 I'm trying to get a photo from known placeID location ("ChIJqaUj8fBLzEwRZ5UY3sHGz90"). I'm using the code below (from the google guide) PlacePhotoMetadataResult result = Places.GeoDataApi.getPlacePhotos(mGoogleApiClient, placeId).await(); if (result.getStatus().isSuccess()) { PlacePhotoMetadataBuffer photoMetadataBuffer = result.getPhotoMetadata(); if (photoMetadataBuffer.getCount() > 0 && !isCancelled()) { // Get the first bitmap and its attributions. PlacePhotoMetadata photo =

Sending API Data to UITableView Within ViewController

假如想象 提交于 2019-12-24 13:09:14
问题 Having trouble filling a TableView within a ViewController (not a TableViewController) with data from the Google Places API. I'm already pulling data successfully and parsing the JSON to a MKMapView with annotations, so I know that part's working, but I want the data to also flow into the table below it (see photo). I've looked everywhere for a simple explanation of how to do this. Even followed a tutorial (but it was meant for a TableViewController, so I'm hoping my issue is just the way I

Filter json results for Autocomplete adapter

ぃ、小莉子 提交于 2019-12-24 12:34:17
问题 I have an autocomplete adapter for my app and I am getting back json results from the Google Places API. My trouble is with trying to get the results to display on the screen. I am using this guide: http://examples.javacodegeeks.com/android/android-google-places-autocomplete-api-example/ For the most part the code seems sound, but for whatever reason I can't get anything to print out onto my display. I don't really understand how the filter works, and maybe an explanation for how that works

Google Places API - Nearby Search not filtering by type

[亡魂溺海] 提交于 2019-12-24 11:19:26
问题 The following URL Request is not filtering places by their types: https://maps.googleapis.com/maps/api/place/nearbysearch/json?type=establishment&location=-15.8374808,-48.0125697&radius=100&key=[YOUR_API_KEY_HERE] The query string type=establishment is not filtering property. Note: insert your Google API Key in the end for search. Edit : I believe only the first result is not in the filtered type. It's the state. 回答1: The establishment type is not in the list of supported types for place

Google Places API quota exceed [duplicate]

梦想的初衷 提交于 2019-12-24 11:12:16
问题 This question already has answers here : “You have exceeded your request quota for this API” in Google Map [duplicate] (2 answers) Closed last year . I have been trying to get similar types of places using google places api. Here's code /** * Method to search certain type of place using Places API * Uses latitude and longitude from global variable */ private void getPlaces() { apiList = getResources().getStringArray(R.array.apiList); int randomIndex = new Random().nextInt(apiList.length);

Storing of photoreferences which are returned with place-details

偶尔善良 提交于 2019-12-24 10:04:33
问题 Can I store the photoreferences returned with place-details API (max 10 are returned) so that I can use them later directly to fetch the photos using places-photos API call? ToS states that we can't store anything. 回答1: Like you said, the ToS state the following: 3.2.4 Restrictions Against Misusing the Services. (a) No Scraping. Customer will not extract, export, or otherwise scrape Google Maps Content for use outside the Services. For example, Customer will not: (i) pre-fetch, index, store,

Check if location is on a toll road

帅比萌擦擦* 提交于 2019-12-24 09:18:59
问题 I am working on a shipment system and in order to calculate the charge for a shipment I need to know if the driver whas in a toll road during the job so I can add the charge to the shipment. I get the location of the driver all the time from an android/ios app he is using. My question is: Is there a way to send a location (latitude & longitude) to google maps api and get back an answere if the location is on a toll road. Thank you 回答1: Well, there is no API for this particular request, that u

Multiple Google Places API calls within Sapply function

时间秒杀一切 提交于 2019-12-24 08:12:48
问题 I have a list of locations that I'm feeding into the Google Places API. Some locations have more than 20 results. I'm providing an example of one such location below. To get results beyond the first 20, you have to make an additional API call to Google Places, with an extra "token" parameter that is obtained from the first Google Places API call. Using the below flawed function, I'm attempting to execute the additional API call, based on whether there are additional results that need to be

Setting Google Places 'Types' on Dropdown Input

强颜欢笑 提交于 2019-12-24 07:15:15
问题 I'm using the Google Places API to list pick up and drop off locations for a transportation service. We have two fields that, when typed in, autosuggest results. When a a dropdown, #transport-type, is set to the first option, value = 1, then the input field, #pick-up-location, should have 'types' airport added to its results. JS: function transport_types() { if ($('#transport-type').val() == 1) { var input = document.getElementById('pick-up-location'); var options = { types: ['airport'] };