google-places-api

Google Places API Alternative

回眸只為那壹抹淺笑 提交于 2021-02-19 08:05:05
问题 My IOS app (Swift 5) HEAVILY relies on googles places API specifically the Places Autocomplete. I'm using it to get addresses and places to show on the map for users. Is there an alternative for this now that they have stopped supporting it or is there a way to fetch autocompleted places using a string. ANY help is greatly appreciated. It's essential for my app to continue working. 回答1: Google has not stopped supporting Places Autocomplete. You can migrate to the new Places SDK for IOS

NotLoadingAPIFromGoogleMapsError even when loading correct URL

房东的猫 提交于 2021-02-07 17:10:53
问题 I am getting the NotLoadingAPIFromGoogleMapsError error for some users even if the correct URL is being used: (pug syntax): script(type='text/javascript' src='https://maps.googleapis.com/maps/api/js?key=MY_KEY&libraries=places') It seems to be resulting from the Authentication API call generated from the script. Anyone else have this issue? How did you solve it? 回答1: Hopefully others will find this useful - I received an answer from Google as follows: The API session token expires if someone

AutocompleteSearchFragment in Dialog gives InflateException

喜夏-厌秋 提交于 2021-02-05 11:52:36
问题 I am using the Google Map's Places API's AutoCompleteSearchFragment in a Dialog . The error that I am getting occurs when I launch the dialog, close it, then relaunch it. Error Message: Error inflating class fragment. Caused by: java.lang.IllegalArgumentException: Binary XML file line #69: Duplicate id 0x7f0a0027, tag null, or parent id 0x7f0a00c7 with another fragment for `com.google.android.libraries.places.widget.AutocompleteSearchFragmet My code: Dialog alert = new Dialog(MainActivity

Google Maps: Retrieve nearby subway stations and their subway line info

拜拜、爱过 提交于 2021-02-05 11:13:17
问题 I've seen that you can retrieve nearby subway stations for a location using the Google Maps Places API, as explained here: Google Maps: Retrieve nearby subway station's latitude and longtitude? But in addition to that data, I would also like to retrieve the subway lines available at that station. Is this possible? 回答1: Currently the Places API doesn't expose this information for transit stations. There is a feature request in Google issue tracker to make it possible to retrieve lines numbers

Google Maps: Retrieve nearby subway stations and their subway line info

与世无争的帅哥 提交于 2021-02-05 11:10:36
问题 I've seen that you can retrieve nearby subway stations for a location using the Google Maps Places API, as explained here: Google Maps: Retrieve nearby subway station's latitude and longtitude? But in addition to that data, I would also like to retrieve the subway lines available at that station. Is this possible? 回答1: Currently the Places API doesn't expose this information for transit stations. There is a feature request in Google issue tracker to make it possible to retrieve lines numbers

Is Google Places API available via maps.google.cn domain?

六眼飞鱼酱① 提交于 2021-02-04 21:01:34
问题 is Google places API available via maps.google.cn domain? This works from China. curl "https://maps.google.cn/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA" but this results in 404 The requested URL /maps/api/place/textsearch/json?query=SOME_QUERY&types=locality was not found on this server. That’s all we know. tried with http:// but no luck. Thanks! (keys are removed from the examples above) 回答1: No it's not available, and if you're in China, please note that

Why is google autocomplete returning undefined when using getPlace() on the input address

让人想犯罪 __ 提交于 2021-02-02 10:01:17
问题 Why is google not returning an object with a formatted address when using auto-complete and how can I get a formatted address? When I log the variable from_place it returns an object like so: but when I log to_place it returns an object with formatted_address: I realise I'm using autocomplete on the first form and that's affecting it but how do i get to not affect or give me the formatted address? // declare variables var map, infoWindow, placeSearch, autocomplete; // autocomplete form var

Show image from Google API Place Photo response

荒凉一梦 提交于 2021-01-29 04:38:52
问题 I am working with Meteor.js. I need place photos of google place. I am working with Javascript here. So here is what I've done. Meteor.call('getPlaceDetails', result.place_id, function (error, placeDetailsResult) { if (error) { console.log(error); } else { console.log(placeDetailsResult.data.result.photos[0].photo_reference); Meteor.call('getPlacePhotos', placeDetailsResult.data.result.photos[0].photo_reference, function (error, photoresult) { if (error) { console.log(error); } else { console

Places API autocomplete problems

为君一笑 提交于 2021-01-28 19:31:31
问题 Hi I'm new to android and am setting up the autocomplete code for the places api. I was following the google dev instructions on their website and ran into a problem that I can't seem to find any answers on. I can't seem to find any info on what i am supposed to put for ID and NAME on the first line. There are no auto complete suggestions that come up and I haven't been able to find any info on it on the official documentation. I believe I have imported everything that I need to as I don't

Why doesn't Google Places API return a business when given a lat/long like a regular Google Search does?

不问归期 提交于 2021-01-27 20:08:56
问题 Ok so let's say for instance I'm trying to find the business that is returned from this google search (using the Google Places API): https://www.google.com/?gws_rd=ssl#q=precision+services+6632+warrior+river+road+bessemer+al+35023 Firstly I use the Google Geocoding API to get lat/long for the exact address of the business(6632 Warrior River Road, Bessemer, AL) Then when I try to use the Place ID that is returned OR use a nearby search with that lat/long I am never able to get the business