We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm using the latest version available via pip and have problems with retrieving details about a place. This is the result for places:
places
{'formatted_address': 'Welserstraße 4, 90489 Nürnberg, Germany', 'geometry': {'location': {'lat': 49.4611013, 'lng': 11.105897}, 'viewport': {'northeast': {'lat': 49.46240978029149, 'lng': 11.1071261802915}, 'southwest': {'lat': 49.4597118197085, 'lng': 11.1044282197085}}}, 'icon': 'https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png', 'id': '7f1d1322ae01fbe1433d70be84d25080cb72b4ef', 'name': "Sanny's Hundeservice - Hundebetreuung und Hundetraining in Nürnberg", 'opening_hours': {'open_now': True, 'weekday_text': []}, 'photos': [{'height': 2448, 'html_attributions': ['<a href="https://maps.google.com/maps/contrib/110315020868274071831/photos">Sanny's Hundeservice - Hundebetreuung und Hundetraining in Nürnberg</a>'], 'photo_reference': 'CmRaAAAAJ-qzyAU24Jj2zVRBHkzvpUnSFGAptiHMVJahSHDzprFRQUuGOot9iJVqNaZR6j6bijUIg7cETJCXAOUfT-ePCu-LYMbFjCFfS-dgrRQW6VWCAGlSBid8bCh-3Jmb5cKrEhBZi8eT76b9z77xzyrwvY8BGhTd5oY9iuRY4O4Y2CVAjEdcDDJ1dw', 'width': 3264}], 'place_id': 'ChIJXZcoZ5JXn0cR7x6kK3ycshs', 'rating': 4.3, 'reference': 'CmRRAAAAkSPGEzAUejFi-lkdSyMoHjBF60rVYpMzEQO5-uhshxZolK_pmIW_dhlL0xmW7Xqse71AUMdpkPjSKal931o8E-hP7DlvGFMoumQ7k9_KZRSWghoAgjgvy23c5TKuFhHTEhBPQQ6A6ooBCyco26mhxrjmGhRqeqV-lGuTXtv3Mmm9yMixMjjQkg', 'types': ['point_of_interest', 'establishment']}
Using the place_id in the next call however always raises an error:
place_id
= 'ChIJXZcoZ5JXn0cR7x6kK3ycshsa', language = 'de') --------------------------------------------------------------------------- ApiError Traceback (most recent call last) <ipython-input-78-5362cdb2deb0> in <module>() ----> 1 = 'ChIJXZcoZ5JXn0cR7x6kK3ycshsa', language = 'de') ~\Anaconda3\lib\site-packages\googlemaps\client.py in wrapper(*args, **kwargs) 354 def wrapper(*args, **kwargs): 355 args[0]._extra_params = kwargs.pop("extra_params", None) --> 356 result = func(*args, **kwargs) 357 try: 358 del args[0]._extra_params ~\Anaconda3\lib\site-packages\googlemaps\places.py in place(client, place_id, language) 254 if language: 255 params["language"] = language --> 256 return client._request("/maps/api/place/details/json", params) 257 258 ~\Anaconda3\lib\site-packages\googlemaps\client.py in _request(self, url, params, first_request_time, retry_counter, base_url, accepts_clientid, extract_body, requests_kwargs, post_json) 251 result = extract_body(response) 252 else: --> 253 result = self._get_body(response) 254 self.sent_times.append(time.time()) 255 return result ~\Anaconda3\lib\site-packages\googlemaps\client.py in _get_body(self, response) 280 body["error_message"]) 281 else: --> 282 raise googlemaps.exceptions.ApiError(api_status) 283 284 def _generate_auth_url(self, path, params, accepts_clientid): ApiError: INVALID_REQUEST
Can you please help me out here? I double checked whether the API KEY is correct and I have calls left on the quota.
The text was updated successfully, but these errors were encountered:
Sorry, I'm stupid, it was just a small typo. Please close this issue :)
Sorry, something went wrong.
gm.place(place_id = 'ChIJXZcoZ5JXn0cR7x6kK3ycshsa', language = 'de')
should be
gm.place('ChIJXZcoZ5JXn0cR7x6kK3ycshsa', language = 'de')
No branches or pull requests
Hi,
I'm using the latest version available via pip and have problems with retrieving details about a place. This is the result for
places
:Using the
place_id
in the next call however always raises an error:Can you please help me out here? I double checked whether the API KEY is correct and I have calls left on the quota.
The text was updated successfully, but these errors were encountered: