google-places-api | Deprecated. Please use the official client. | REST library
kandi X-RAY | google-places-api Summary
kandi X-RAY | google-places-api Summary
This library is deprecated. Please use the official client.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Search for places
- Nearby creates a nearbyCall object .
- NewService creates a new Service .
- IsZeroResults returns true if the error has no results .
- IsInvalidRequest returns true if the error is an invalid request .
- IsRequestDenied checks if the given error is a requestDenied error
- IsNotFound returns true if the error is a NotFound error .
- IsUnknown returns true if the error is an unknown error
- IsOverQueryLimit returns true if the error indicates that the limit is exceeded .
google-places-api Key Features
google-places-api Examples and Code Snippets
Community Discussions
Trending Discussions on google-places-api
QUESTION
I'm using this tutorial (https://scrapediary.com/find-local-leads-with-google-places-api-and-sheets/) to scrape data from google places API into a google sheet. I copied the code exactly:
...ANSWER
Answered 2020-Dec-08 at 16:59There is no doubt that the code you copied is working. Upon testing the same exact code you posted to replicate the problems, I only added return
in the function to populate the cell.
See my exact code which worked and returned the data in sheets.
QUESTION
I am checking for similar results as stated in this link ,it for server side Google Places Api sort by distance
I need to sort the places based on my nearest distance of mobile android . But , I dont see any rankby distance in api .
Is there any other way to do in Android for AutoComplete Fragment
...ANSWER
Answered 2020-Oct-13 at 04:30Officially, their documentation doesn't support rank by distance feature for Autocomplete. This holds true not only for Places Autocomplete for Android, but to Javascript (client-side) and web service (server-side) as well.
However, a possible workaround would be (depending on your use case), but would be much more expensive, is to make use of Distance Matrix API and create your own Autocomplete depending on its result. So the idea is to:
- Use place autocomplete where the default behavior is that for every character, 5 suggested places are given.
- Get each of those 5 address's place ID, and do a Distance Matrix request to all of them to get their distance to one another.
- Do an event on the textbox and provide those addresses in a dropdown that is sorted by distance. Something like this
You might also want to consider filing a feature request for that functionality to be added on their public issue tracker. Here is a link to guide you for your reference: https://developers.google.com/maps/support
QUESTION
I want to display a simple Google Maps on my Website. I followed several tutorials and they always tell me the same: Generate API KEY, Enable the Google Maps API and type in this code...
First it loads correctly with the latitude/longitude I want (the city Stuttgart), but after 1 second the maps switches to an error display and the console says: Google Maps JavaScript API error: ApiNotActivatedMapError
:
After 1 second:
When I google the error, I always end up with suggestions to enable the Maps JavaScript API, for example: ApiNotActivatedMapError for simple html page using google-places-api
But when I look it up in my Google Cloud Console, the Maps JavaScript API is enabled:
and:
...ANSWER
Answered 2020-Jun-18 at 07:23I solved it by creating a completely new project in the google maps console and repeating the steps of enabling the Maps JavaScript API and then generating the API Key. Then it worked.
QUESTION
I am working on a project into which there is a requirement of setting a text input data on ngInit() of the parent component.
Basically I have a component, which is a Google AutoComplete dropdown, and I have the main HTML page in which I am populating this component.
How can I set a value from the main page who is calling this component?
I am following the source code which is exactly the same as This Tutorial.
Here I have an AutocompleteComponent
which is responsible to display the place in a dropdown. And this
is loaded from app.component.html
.
I want to set some value to AutoCompleteComponent
addresstext
input text box from app.component.ts
. May be from ngInit()
of app.component.ts
.
How can I achieve this?
...ANSWER
Answered 2020-May-11 at 11:37Use @Input Property of Angular which sends data from Parent Component to Child Component
QUESTION
I'm trying to build a function for Google Sheets to get the complete address from certain places out of Google Places API.
As far as I understood, for that I need to:
a) Build the query to be shot on Google Places API (example: https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=cordoaria%20sao%20leopoldo%brasil&inputtype=textquery&key=AI***)
...ANSWER
Answered 2020-Mar-30 at 17:15The problem wasn't from my result/results
Please check this google sheets [removed link as it no longer exists]
And the project code is this one below (I will remove my key soon)
QUESTION
Using the Google Places API I cannot seem to get the description of a place whether through a nearby_search or a details_search. Please look at the attached picture for what I am wanting to pull from the JSON. This information must be coming from somewhere, it's just a question of where.
This has been asked here: Displaying a Place Description on Google Places API for iOS but the answers are not adequate and link to documentation that I've read many times over and can't seem to find it.
...ANSWER
Answered 2017-Jun-15 at 22:10I believe what you're looking for is the review_summary
field, part of the extensions
parameter which was unfortunately deprecated a little over a month ago.
You could try HTML parsing the section-editorial
div class.
QUESTION
I wanted to use Google Places API to get nearby places (music venues, pubs, theaters, etc.) in given city, then look for events in these places. And if you look at some places on google maps, you can see that there is a section 'Upcoming Events', so I'm sure the data is here. The problem is, Place Details endpoint does not provide with such information, although upon some research I found some information that told me otherwise, namely this, however I am aware that this information is pretty old at best. My question is - is this feature of API still available, or was it removed, or what?
Currently what I'm doing is first sending the request like this:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?key={api_key}&location={city}&radius={some_radius}
to get all the places available, then for each place_id in response:
https://maps.googleapis.com/maps/api/place/details/json?key={key}&placeid={place_id}
The fields in these responses are not including any info about events, even if the place have the section 'Upcoming Events' on google maps.
...ANSWER
Answered 2019-Jul-30 at 22:18There is a feature request for Events API in the Google issue tracker:
https://issuetracker.google.com/issues/137032001
I would suggest staring the feature request to add your vote and subscribe to further notifications from Google. Hopefully one day they implement this API and expose events via APIs.
QUESTION
I am currently using react-google-map
for getting Google Map to run in my React project, here is my Map component:
ANSWER
Answered 2019-Apr-17 at 17:45Check if your project has a billing account associated to it. You can use this Google tool: https://mapsplatformtransition.withgoogle.com/
"This project does not have a billing account. You will need to add billing information for this project to continue to use Google Maps Platform. The first $200 of monthly usage is free. You only pay for what you use. You can review rates and access your spending any time in your Google Cloud Platform Console, where you can also set daily quotas to protect against unexpected increases. You can also set billing alerts to receive email notifications when charges reach a preset threshold determined by you."
It will list all your projects using Google Maps and tell you to "Add Billing" if the project status is not "in good shape".
QUESTION
I've been stuck on this problem for quite some time and read all the earlier posts on stackOverflow, however none of them has solved my my problem. I've done everything mentioned however as soon as i launch the placePicker, it closes immediately.
The posts I've already been referred to are:
Here is the code for the PlacePicker:
...ANSWER
Answered 2019-Mar-23 at 08:00Google Places SDK is Depricated, You need to migrate new API "PLACES API"
Please refer docs.. https://developers.google.com/places/android-sdk/client-migration#place_picker
QUESTION
I'm working on app which uses Google-Maps-API and i want to add search-box
field that uses Google-Places-API to autocomplete what the user typed so far
and then to save the selected item value.
https://github.com/jonny720/do-here-client
So i got my Google-Places-API key, and i don't really know where to put it and how to implement this API.
The Google-Maps-API is placed in the androidMAnifest.xml and its working fine.
...ANSWER
Answered 2018-Sep-05 at 01:35Places and Maps-utils plugins are already available. You can use them. Did you try them?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install google-places-api
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page