google-places-api

How to search local business by name, location in iOS?

萝らか妹 提交于 2019-12-04 18:11:53
I am working on project in which we are displaying local business search. I am using YELP to search local business. As per YELP Documentation i have created query. But it gives result based on location only. I am trying with Google Place API but not getting desired result. My YELP request - http://api.yelp.com/v2/search/?term=restaurant&location=nyc&limit=20&offset=1 My Google Place API request - https://maps.googleapis.com/maps/api/place/textsearch/json?query=hotels+in+nyc&sensor=true&key=AIzaSyCHwd5OgRXdeuTWV46SHdMLq2lXL20t22U How can i get result by business name & location as well using

Wrap Google Places Autocomplete Service through jQuery UI Autocomplete feature

喜夏-厌秋 提交于 2019-12-04 17:51:44
I am trying to use jQuery UI Autocomplete feature in order to make a wrapper of Google Autocomplete Service(because I just want to restrict some of the results returned by Google in a manner that is not possible through Google API). Suppose I have this code: $("#address").autocomplete({ source: function(request, response){ autoCompleteService = new google.maps.places.AutocompleteService(); autoCompleteService.getQueryPredictions({input: request.term }, autocompleteCallback); //I should somewhere call the "response" object with desired suggestions as arguments }, minLength: 5, }); The problem

Google Plus 21-digit URL Number Relationship to a Google Place's ID and Reference Numbers

雨燕双飞 提交于 2019-12-04 16:23:48
What is the relationship between a Google Place's ID and Reference Number and the same Place's 21-digit Google Plus number used in the Place's Google Plus URL? I want to link Google Plus URLs for 100's of different businesses to my website. However, I do not know the Google Plus URL address for each of the businesses. But I do know the Google Place ID and Reference Number for each of the businesses. Can I derive the 21-digit Google Plus Number for a business from their Google Places ID and Reference Number? If I can, what is the formula that creates the 21-digit Google Plus Number? Or is the

Get country code from PlaceAutocompleteFragment android (Google Places API)

感情迁移 提交于 2019-12-04 16:03:48
In Google Places API for Android, I am using PlaceAutocompleteFragment for displaying the city/country. Here am getting the address, name, placeId, etc. Place object contains only these fields. @Override public void onPlaceSelected(Place place) { Log.i(TAG, "Place Selected: " + place.getName()); // Format the returned place's details and display them in the TextView. mPlaceDetailsText.setText(formatPlaceDetails(getResources(), place.getName(), place.getId(), place.getAddress(), place.getPhoneNumber()+" "+place.getAttributions()+" :: "+place.getLocale(), place.getWebsiteUri())); } But I want

Google Places API Autocomplete on iOS

若如初见. 提交于 2019-12-04 15:39:58
Over the last few days I've been struggling to get Google Places autocomplete to work on my app, and no matter what I do, I always get the REQUEST_DENIED error. I followed Google's "tutorial" for the implementation, Places API is enabled, API key has the correct bundle ID, I also tested with a Browser ID, with no success. I am pretty sure it has something to do with the key, though. Curiously, on the Android version of the app, the service will work with the Browser Key. And on the browser, obviously, it works with that key too. These are the two keys I experimented with: And this is my

Creating a place type filter for the Place Autocomplete API for Android

懵懂的女人 提交于 2019-12-04 14:52:27
This API seems to be fairly new so there aren't many questions about it here, nor many tutorials. I followed Google's tutorial and got the Autocomplete Android api working in my app. I'm now trying to use the AutocompleteFilter to restrict my results to a certain region or certain types of places. There seems to be little to no documentation for a beginner like me explaining what to do. The AutocompleteFilter requires a Collection object. How do I change the the following values into integers? https://developers.google.com/places/supported_types#table3 I cannot comment yet so I add it here a

javax.net.ssl.SSLPeerUnverifiedException: No peer certificate while I am working with google place api in android [duplicate]

霸气de小男生 提交于 2019-12-04 12:01:54
问题 This question already has answers here : Android: Making Https Request (2 answers) Closed 6 years ago . I am facing an javax.net.ssl.SSLPeerUnverifiedException: No peer certificate exception while working with google place api in android emulator.Below is my url: https://maps.googleapis.com/maps/api/place/search/json?&location=28.632808,77.218276&radius=1000&sensor=false&key=AIzaSyC3y3fOMTqTkCjNNETQTCKustG7BRk_eVc when i simply , paste above url in browser address bar , it simple gives Json

Getting list of POI from Google Places API

旧街凉风 提交于 2019-12-04 11:10:21
问题 Can anyone guide how to get list of POI from a particular city for e.g. ahmedabad. Got the query https://maps.googleapis.com/maps/api/place/nearbysearch/xml?location=23.006000,72.601100&types=point_of_interest&radius=50000&sensor=false&key=YouAPIKey "point_of_interest" its already mentioned that they provide but not sure how https://developers.google.com/places/documentation/supported_types Help will be appreciated 回答1: You need to pass any one of the supported type to your query against

Is It Possible To Open Google Maps By PlaceId?

独自空忆成欢 提交于 2019-12-04 11:07:30
I have a place id obtained from Google Places API, and the aim is opening Google Maps app via place id like similar approach of below Uri gmmIntentUri = Uri.parse(String.format(Locale.ENGLISH,"geo:%f,%f", lat, lon)); Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri); mapIntent.setPackage("com.google.android.apps.maps"); if (mapIntent.resolveActivity(getPackageManager()) != null) { startActivity(mapIntent); } Is there a way for this ? I have already latitude, longitude when user type for example "Eiffel Tower" from places API. And I'm storing those values for next usages(Say we

Google Places Autocomplete plugin isnt working in Firefox android

╄→尐↘猪︶ㄣ 提交于 2019-12-04 10:28:42
We are using google's places-autocomplete plugin on our website. Of late we have received several complaints from our website visitors that this plugin isn't working in the Android version of Firefox. It works fine in the desktop version of Firefox however. The problem can be simply observed by Going to the places-autocomplete example here Trying to enter a zip code in the "Enter a location" search input You will observe the following 2 issues - Google Auto-complete should show suggestions as you start typing the zip code. But it doesn't until one types a space or , after the 5 digit zip code.