google-places-api

How to get a click event when a user clicks a (business) place on the map

被刻印的时光 ゝ 提交于 2019-12-27 11:45:17
问题 I know how to set a click event on a map, and it works fine when clicking random locations. But when I click a business place, Google Maps will display the balloon containing the information about the business, but not raise the click event to my JavaScript. You can see this happing on this geocoding demo (http://rjshade.com/projects/gmaps-autocomplete/). Browse the map to some city and click a random location: the address is displayed in the text box (Hurray!). Now find some business place

How to open dialer on phone with a selected number in android [duplicate]

℡╲_俬逩灬. 提交于 2019-12-26 07:19:49
问题 This question already has answers here : How do I get the dialer to open with phone number displayed? (6 answers) Closed 3 years ago . I have made an application that uses Google Places API. Once I click on a place it returns the name of the company, the address and the number to the MainActivity. When I click on the number I can open the dialer but I can't seem to get the number that is returned on the MainActivity into the dialer. Any ideas on how I could go about doing this. Thanks My Code

How to open dialer on phone with a selected number in android [duplicate]

只谈情不闲聊 提交于 2019-12-26 07:19:06
问题 This question already has answers here : How do I get the dialer to open with phone number displayed? (6 answers) Closed 3 years ago . I have made an application that uses Google Places API. Once I click on a place it returns the name of the company, the address and the number to the MainActivity. When I click on the number I can open the dialer but I can't seem to get the number that is returned on the MainActivity into the dialer. Any ideas on how I could go about doing this. Thanks My Code

Google Places coordinates changing keys

爱⌒轻易说出口 提交于 2019-12-25 18:28:19
问题 I'm using google places API for my ionic APP. The the data model of coordinates it gives before was {A: 12.879721, F: 121.77401699999996} now it's like this: {G: 12.879721, K: 121.77401699999996} How do I resolve this issue 回答1: Don't use undocumented properties (they change, or can, with every release of the API), use the documented methods (.lat() & .lng()) 来源: https://stackoverflow.com/questions/31711938/google-places-coordinates-changing-keys

Google Places AutoComplete API gives API_NOT_CONNECTED error in Instant Apps configuration

雨燕双飞 提交于 2019-12-25 12:43:50
问题 I am trying to add Google Places AutoComplete API to my Android Instant Apps project. I followed this sample to implement the API. My PlacesAdapter class: package net.epictimes.uvindex.autocomplete import android.content.Context import android.graphics.Typeface import android.text.style.StyleSpan import android.view.View import android.view.ViewGroup import android.widget.ArrayAdapter import android.widget.Filter import android.widget.Filterable import android.widget.TextView import com

google places api fetch more than 60 results

纵饮孤独 提交于 2019-12-25 09:29:05
问题 I'm currently working with google places api to fetch nightclubs in the given city, I have evn added my credit card to API details as per you documentation I was supposed to get 150K hits per day. when I hit the google places api it returns only 60 places in 3 pages. Please assits how can I can more results from API query. 回答1: It is not possible to get more than 60 results from places search request. This behavior is well documented. By default, each Nearby Search or Text Search returns up

Using Google Places Web Service in an Android app

左心房为你撑大大i 提交于 2019-12-25 08:50:01
问题 All of the Android APIs for Google Place searches return predictions, and these are not as accurate or as complete as the Place Search web service. Though predictions usually deliver the desired place, I've bumped into scenarios where they don't. I want to use the Android API as a primary search tool, but offer the user a search button that delivers more complete results (like those returned by the web service). I've validated that I have a working web api-key with this url: https://maps

Google places AutoComplete hide key

匆匆过客 提交于 2019-12-25 07:59:43
问题 I have a grails application. In my gsp page when I have the line <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key=myKey"></script> My key is exposed, is there a way to hide this in the gsp? I could restrict the domain for my production, but currently the application is being tested in my local machine alot, and because of that each PC's ip has to be added. I'm assuming there should be a smarter & easier way to handle this. 回答1: There is no way to hide this

Can't get google maps to show behind Google Places in my app (only grid)

左心房为你撑大大i 提交于 2019-12-25 06:16:41
问题 I have this code from the tutorial Android Working with Google Places and Maps, and I want to change it, because I need it to work with google maps v2. The problem is that instead of the map, I only get a grid behind google places. PlacesMapActivity.java package com.androidhive.googleplacesandmaps; import java.util.List; import android.content.Intent; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.util.Log; import com.google.android.maps.GeoPoint; import

Android google places api return request denied

泪湿孤枕 提交于 2019-12-25 05:15:16
问题 In my Android project I am using Google map v2 and its working. As a change request I need to include search places in AutoCompleteTextview. I did the following steps to get map in Google console. 1) I have registered app. 2) Placed SHA1 key and generated Android key. 3) And made all procedure and get map. Now I include Google places search in an auto complete textview. 1) go to the project enabled places api in the service pane. (picture 1) 2) I give sample company name and web site url