google-places-api

OnPlaceSelectedListener of SupportPlaceAutocompleteFragment not fired inside ViewPager

懵懂的女人 提交于 2019-12-04 10:22:19
My application has and activity with a viewPager and 4 fragments. In one fragment I added a google SupportPlaceAutocompleteFragment and public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.area_swipe_fragment, container, false); SupportPlaceAutocompleteFragment autocompleteFragment = (SupportPlaceAutocompleteFragment) getChildFragmentManager().findFragmentById(R.id.place_autocomplete_fragment); autocompleteFragment.setOnPlaceSelectedListener(new PlaceSelectionListener() { @Override public void onPlaceSelected

How to get latest GoogleMaps SDK using pods

那年仲夏 提交于 2019-12-04 08:28:39
I'm trying out the google places sdk sample. I installed it using pod try GoogleMaps I installed GoogleMaps (1.10.5) using cocoapods source ' https://github.com/CocoaPods/Specs.git ' platform :ios, '8.1' pod 'GoogleMaps' checking the GoogleMaps in both steps, the one in the sample (1) contains more headers like GMSAutocompleteTableDataSource.h Why are they different? The one in the sample seems to be a better version but the one given by pods is not the latest? Its not even in the changelog Run pod update GoogleMaps . Cocoapods won't update the version of a pod you've already downloaded unless

This IP, site or mobile application is not authorized to use this API key. How to fix this issue for an ios app?

我的梦境 提交于 2019-12-04 08:13:52
I'm working on Augmented reality in ios app. I found a nice tutorial and a sample project from this site . While running that app in my device, I received the error in NSLOG console, Response: { "error_message" = "This IP, site or mobile application is not authorized to use this API key."; "html_attributions" = ( ); results = ( ); status = "REQUEST_DENIED"; } I'd created a new project in Google dev site and created Sever Key as iOS Key is not supported for Google places Api. I'd also tried with browser key, it didn't work. My Request url is look like below, <NSMutableURLRequest https://maps

What is a good, unlimited alternative to Google Places API? [closed]

流过昼夜 提交于 2019-12-04 07:51:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . For my project I've been relying on the Places API to search for POI's based on a desired query string and distance from a given point. As things are scaling up, however, I'm hitting the usage limits for Places really fast. Does anyone know of another API that doesn't have usage limits (or significantly more

How to get opening hours from google places api

我们两清 提交于 2019-12-04 06:14:52
Here I have a code that works fine, so here is simple google places code that show me a places based on location and I add an label on every marker so: http://jsbin.com/UqafeCI/4/edit - CODE and DEMO Now I want to in label show opening time so I add to my code: if (!!place.opening_hours.periods[1].open.time) open = place.opening_hours.periods[1].open.time; and now my code looks like this: google.maps.event.addListener(searchBox, 'places_changed', function() { var places = searchBox.getPlaces(); for (var i = 0, marker; marker = markers[i]; i++) { marker.setMap(null); } // For each place, get

Getting a place name in google map in android

血红的双手。 提交于 2019-12-04 06:11:55
I have a requirement that whenever I drag/browse the Google map and place a marker on it, it should display the name of the place(where the marker is placed) in an AutocompleteTextview. I have checked out the Places API and the Geocoder class but i least understood it. I need to do the task same as that of the Places tab in the life360 app. How can I achieve it? Anil kumar try this it may help you... When u mark a place, try to capture latitude & longitude with marker & use this code to get location name public String getAddress(Context context, double lat, double lng) { Geocoder geocoder =

Can't load search results Google Places ios Swift

故事扮演 提交于 2019-12-04 05:50:43
问题 I am using GooglePlaces for my app everything works perfectly but i don't know what happen suddenly i am getting error message " Can't load search results " my API is already Enabled NOTE: i had tried following solution but which is not works for me Google Places AutoComplete on iOS - Can't Load Search Results - Try Again Google Places iOS - Can't load search result Someone Please Help! 回答1: My issue is solved as i regenerate my google API keys 来源: https://stackoverflow.com/questions/49627648

Google Places API Android: Autocompletion closes too quickly

那年仲夏 提交于 2019-12-04 05:30:08
I added Place Autocompletion to my android app. When I click a button ( chooseLocationButton ) it opens the Autocomplete widget correctly. The problem is when I want to write a name in the search field. Directly after clicked on the first keystroke, the Autocomplete widget close and the research is not done. Here it is what it is written in the Run console: W/IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection W/IInputConnectionWrapper: finishComposingText on inactive InputConnection Here it is the code: AutocompleteFilter.Builder a = new AutocompleteFilter.Builder();

Where do I retrieve the photo_reference value to make a Google Places Photos request?

时光总嘲笑我的痴心妄想 提交于 2019-12-04 05:23:31
问题 From Google's Place Photos documentation I should be able to retrieve a photo_reference key from making a request to their nearby search, radar, or place details services. I'm hitting their place details service, and I'm receiving an array of photos with 10 elements, but these elements only contain the height , width , and html_attribution keys. Am I missing something here or has their API changed without updating their documentation? Here's my request to place details, where place is the

Google Places Autocomplete with Jquery Mobile not working on mobile/touch device

安稳与你 提交于 2019-12-04 04:59:25
As title suggests I am building a mobile website with JQuery Mobile (1.3.0) and am trying to implement Google Places Autocomplete (API v3) to aid user input of location data. The autocomplete functions correctly on desktop device, but not when used on a mobile device (I have only tested on iOS 6). When used on mobile device the dropdown list of relevant locations do appear, but simply disappear when you press one without loading the selection on the map. I have looked around and seen some solutions that sight the z-index of .pac-container as the culprit (see: http://osdir.com/ml/google-maps-js