Questions tagged [google-places-api]

0

votes
0

answer
2

Views

Trying to show a map using the Google Places API, but it is not displayed due to the following error: initMap is not a function

I am trying to load a map on my WordPress apage using the Google Places API. However, it does not display, which is probably due to the following error: 'initMap is not a function'. I found several related threats, but I couldn't find the right answer that applies to my specific case: jQuery(documen...
user3588669
0

votes
0

answer
7

Views

How should I set the language en to get only english results from the PlacesClient by Google in Android?

Here are the coordinates I am passing into the emulator: Latitude: 25.0783 Longitude: 55.172 Its not giving me the desired results. Below are the results returned: Dubai AE-DU AE - دبي - United Arab Emirates دبي - الإمارات العربية المتحدة دبي - الإمارات الع...
Sachin Rupani
1

votes
2

answer
344

Views

Add place via Google Place API WEB Service with opening hours

Is it possible to add new place with opening hours via Google Places API Web Service? I can't find any information about it. https://developers.google.com/places/web-service/add-place Thank you in advance
barbaris
1

votes
1

answer
1.1k

Views

Android App key restriction is not working for Google Places API Web Service [duplicate]

This question already has an answer here: Why Google places API key not works? 1 answer I have provided package name ( app id ) and sha1 certificate fingerprint for app, but still Android App key restriction is not working for Google Places API Web Service Looks like Android App key restriction no...
1

votes
0

answer
95

Views

How to handle event on Search button on keyboard which comes when we use PlaceAutocompleteFragment

PlaceAutocompleteFragment implementation is working fine, as it should work. On Click on PlaceAutocompleteFragment, I am able to search places. PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment) getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment); autoco...
Manish Singh Rana
1

votes
1

answer
216

Views

On load Get values from field in google map

I am using Google Map Place Autocomplete Hotel Search Service to Display All hotels Near User Location. I made a demo for this and its working fine in my machine.but my requirement is when page loads Get user field data and show nearest hotels on page load. e.g Currently what happens is it shows ne...
1

votes
1

answer
304

Views

Google maps Places API nearby search for auto-check in

We are using the nearby search feature as described here (https://developers.google.com/places/web-service/search) to perform auto check-in in Android as well as iOS mobile apps. However, when we call the web API, many of the nearby locations do not show up in our results. At the same time, I do rec...
Saeid Bagheri
1

votes
0

answer
164

Views

Google Places API Autocomplete Not Showing Results

In my React application. I'm using the Google Places API Autocomplete so users will be able to type their location and their city/state/country info will be automatically filled in, but I'm getting a problem I can't solve. const autocomplete = new google.maps.places.Autocomplete(input); When I don'...
Tyler Benton
1

votes
0

answer
44

Views

How to get detailed data from google places api?

Is it possible that we can get detailed data from Google-Places-API, like Good For Kids, cuisine, attire, reservation, seating_outdoor
DevProf
1

votes
0

answer
301

Views

Google places search changes selected location address

I have implemented google places plugin in Angular 5 Application : I have used config code as following : // load Places Autocomplete const autocomplete = new google.maps.places.Autocomplete( this.searchElementRef.nativeElement, { types: [] } ); autocomplete.addListener('place_changed', () => { this...
Sangwin Gawande
1

votes
0

answer
170

Views

Adding review[] with google places details

Following the Google API documentation (https://developers.google.com/places/web-service/details) I'm trying to adding for the first time review[] with google places details in my custom table view cell, but it does not work. I already added other parameters like the website and phone number and bot...
fisherM
1

votes
3

answer
516

Views

Validate PlaceAutocompleteFragment in android

I am trying to validate a PlaceAutocompleteFragment in android. I would like to add a toast if it is empty, if it is not empty then I want to do some processing. Here is my PlaceAutocompleteFragment. Is there an event listener I can attach to validate if no Place is selected? FYI this is the Google...
travellingSalesMan26
1

votes
0

answer
182

Views

places api key invalid

I have followed various questions and solutions as regards the PLACES_API_KEY_INVALID error. I have set up the credentials correctly and I am using the right API key in my manifest.xml but I still get the invalid API key error. I have searched and searched but no solution. I am trying to see if I ca...
Pelumi Oyefeso
10

votes
2

answer
9k

Views

Google's Places API and JQuery request - Origin http://localhost is not allowed by Access-Control-Allow-Origin

I doing some testing for a project I got in mind which involves using places nearby. So I went with the big guy and started messing around with Google's Places Api. I'm using leaflet with openstreet tiles for my map. Now everything is fine until I try to use the dang thing. var lat = coords.lat; v...
LouieV
1

votes
0

answer
36

Views

Google api - Different result get from api/browser

If I open this URL in browser https://maps.googleapis.com/maps/api/place/textsearch/json?query=STUDIO+DAL+BON+SRL+ASOLO+FRAZ.+CASELLA®ion=IT&key=api_key I can see one result for query. If I try to get same thing from code (with the same URL), I obtain ZERO RESULT...why? WebClient wsClient = new W...
Daniele Z.
1

votes
1

answer
548

Views

Google Places API - Place Details : Is the 2 letter Country Code based on any Standard?

The 'address_components' node, in the Place Details service response of Google Places API, shows a Country Code under 'shot_name'. Does this code follows any particular standard like ISO 3166? In the online documentation (https://developers.google.com/places/web-service/details), its seen as if they...
Umesh Rajeev
1

votes
0

answer
264

Views

Get image URL for a given Google Place ID in iOS

I have a GMSPlace object and I want to get the image URL for that place but the Google Places SDK doesn't seem to allow for that. loadImageForMetadata only returns an object of type UIImage. I don't need the image just the URL. How do I find the image url for a given Google Place ID? Here's a clas...
Cesare
1

votes
0

answer
518

Views

How to get address in English language only using GMSGeocoder

I am using GMSGeocoder in my iOS app. And also I am using multiple languages(say English, Arabic). While using Arabic language I am getting an address in Arabic language. But I want to get the address in English language only. For this I used geocoder.accessibilityLanguage = 'en-US'. but it didn't...
amma teja
1

votes
0

answer
295

Views

React Native - Image picker with images from online?

I am currently using Google Places API on react native to get an array of photo URLs from a specific site. However, I would like my user to pick the ones that they want us to save in our servers (multiple images), and also set as primary picture for their profile. I've been looking through many imag...
Luis Rizo
1

votes
0

answer
165

Views

How to disable search icon from all PlaceAutocompleteFragment?

I have 2 fields in my Layout. PickUp/ Drop autocompleteFragment_pickup = (PlaceAutocompleteFragment) getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment_pickup); autocompleteFragment_pickup = (PlaceAutocompleteFragment) getFragmentManager().findFragmentById(R.id.place_autocomplete...
user9212972
1

votes
1

answer
265

Views

Google places api text search issue

If I use 50,000 meter radius in my query I get the results but very near by places get omitted. if I type same keyword in google maps results are completely different. but results are exactly same if I keep radius to 1000 meters why so ? Can anyone help me understand this ? https://maps.googleapis.c...
akshay_shahane
1

votes
0

answer
232

Views

google api - how to get all the addresses for a chosen city/town/village

i'm using the google place api. My question is how to get all the addresses for a chosen city/town/village. At this point thats my code: var placeSearch, autocomplete; function initAutocomplete() { autocomplete = new google.maps.places.Autocomplete( (document.getElementById('autocomplete')), {t...
1

votes
0

answer
263

Views

Google Places API for Hospitals

I am using Google Places API to search nearby hospitals from a location. My problem is that I want to get famous and big hospitals but the problem is the API is fetching clinics and even dental clinics too. How I can be more specific? Query URL : https://maps.googleapis.com/maps/api/place/nearbysear...
Asad Marfani
1

votes
0

answer
480

Views

My Google-Places API Key is activated but not working

I'm using this package to run Google Places API on Python. I'm running the following code: from googleplaces import GooglePlaces, types, lang key='XXXXXXX' google_places = GooglePlaces(key) query_result = google_places.nearby_search( location='London, England', keyword='Fish and Chips', radius=20000...
abutremutante
1

votes
1

answer
90

Views

Google Places API for iOS Quota

We have an iOS app which uses Google Places API for iOS. We realized upon launch that we receive more than a 100 requests in a day which is causing our app to break because we reached our limit. Now, we've increased our limit with the help of Google and I want to know if already generated API keys w...
Fitzgerald Afful
1

votes
0

answer
28

Views

Android - Google places API | how to desable selecting the place from the search bar

im using Android - Google Api Places i want use its search bar just for searching - means : when the user search for a place on the search bar when he click on the search bar suggestions i dont want to select this place as a result , i just want to navigate to this place on the map so he can make...
ahmed kamal
1

votes
0

answer
153

Views

How to get response of Place Autocomplete in the typed language?

I use Google Place Autocomplete to return place predictions .. when I type in Arabic language , the results shown in Arabic The Problem is after I select , I get the result response in English which is my mobile Language , and when my mobile Language is Arabic I get response in Arabic , it seems to...
Pearl Adams
1

votes
1

answer
234

Views

How to get local place and business information in Google Maps while clicking on the icon?

In the 'Google Maps' app while a user clicks on the icon of a local place or business or institution(e.g ATM, Hospital icon) it shows the details of that business. I want to do the similar thing. So far what I have found is Place Picker. But for using Place Picker I have to open a different intent....
1

votes
0

answer
92

Views

How to strictly bound places within 15km of a particular LatLng in Google Places Autocomplete API?

I am implementing Google Places Autocomplete API in Android. It should display only the places in the 15km radius of LatLong 10.0158605,76.3418666. The issue is, it will also display other places in India along with the places in this 15km radius. Is there any way to Strictly Bound only 15km places?...
Sawariya
1

votes
0

answer
94

Views

Releasing PlaceBufferResponse

I am using PlaceBufferResponse in code below, but compiler says release is internal and don't use it, then how shall I release it? val placeResult = mGeoDataClient.getPlaceById(placeId) placeResult.addOnCompleteListener(object : OnCompleteListener { override fun onComplete(task: Task) { val places =...
AVEbrahimi
1

votes
0

answer
200

Views

i want to display google place picker for restaurants using GMSPlacePickerViewController, below are the code i am trying from developers.google.com

i want to achieve above screenshot output in one of my app below is the sample code i am looking at in developers website. https://developers.google.com/places/ios-api/placepicker GMSPlacePickerConfig *config = [[GMSPlacePickerConfig alloc] initWithViewport:nil]; GMSPlacePickerViewController *place...
Maheta Dhaval K
1

votes
0

answer
497

Views

“Uncaught TypeError: Cannot read property 'activeElement' of undefined”

mounted(){ var input = this.origin; var searchBox = new google.maps.places.SearchBox(input); searchBox.addListener('places_changed', function() { var places = searchBox.getPlaces(); }); }, Is there something im missing? I also added my api at my index.html
Bogart
1

votes
0

answer
272

Views

GOOGLE PLACE API what am i allowed to save instead of place id?

i have read so many documentation about it and i still confused what i am albe to store in my database.. for what i already understood is that 'place id' can be store permanently in database.. as a newbie i have some questions: im still confusing about 30 days cache stuffs.. would be great if someon...
W.Yen
1

votes
0

answer
58

Views

Why locale received from Google Places API is always null

I am using Google place API on android application. When place is selected, I receive Place object. From that object, I want to use Locale. But everytime I am getting Locale null. Am I missing something? I am able to get name, address, lat, long from that place object. Also, is there any other metho...
Virat18
1

votes
1

answer
16

Views

Google Places API and Measurement of Quota Requests

I wonder if someone else has experienced the same issue, and might have an answer to it. I am using the Google Places API. There I do two kinds of requests https://maps.googleapis.com/maps/api/place/textsearch/ and https://maps.googleapis.com/maps/api/place/details/ After I have done about 20,000 o...
Gerald
1

votes
1

answer
85

Views

Strange results from Google places autocomplete for sequence of repeating letters

This call https://maps.googleapis.com/maps/api/place/autocomplete/xml?input=qqqqqqq (plus your key) returns addresses like 'qqqqqqqqqq, Florida, USA' and 'qqqqqqqqqqqqqqqqqqqqqqqq - Luizote de Freitas, Uberlândia - State of Minas Gerais, Brazil'. I understand that QQQ might be a valid name, but qqq...
Dima
1

votes
0

answer
34

Views

More granular Google Places API

I need an API that will return addresses that includes apt numbers if available. Is this possible with Google Places API? If not, what is the suggested API to do so?
PotatoPeanut
1

votes
0

answer
11

Views

Google places Java script hosted solution

https://developers.google.com/maps/documentation/javascript/examples/place-search Using google places api, do we know if the Java script can be hosted on the the client side ? Or does it have to run on the vendor side ?
Parul
1

votes
0

answer
36

Views

Android Places SDK returns at most 5 results

I'm using autocomplete service of Android Places SDK to show location results based on user's query. I'm using following code to fetch results as per user's query: public void showPredictions(String query) { GeoDataClient geoDataClient = Places.getGeoDataClient(context); Task results = geoDataClient...
Harry
1

votes
1

answer
45

Views

Parsing a JSON file but not getting everything returned

I'm trying to parse a JSON file from Google Places API. I am trying to gather the vicinity address, the lng/lat coordinates, as well as the Place ID. On the page with the JSON file, my code is capturing more of the locations' information, but for some reason it is not getting the data from one of th...
AmyP

View additional questions