# Getting error In google assistant ,when I am trying to find places near my loction using googleplaces api's

**URL:** <https://forum.rasa.com/t/getting-error-in-google-assistant-when-i-am-trying-to-find-places-near-my-loction-using-googleplaces-apis/11367>\
**Category:** Tutorials, Resources & Videos\
**Created:** [June 12, 2019, 11:29am UTC](https://forum.rasa.com/t/getting-error-in-google-assistant-when-i-am-trying-to-find-places-near-my-loction-using-googleplaces-apis/11367 "2019-06-12T11:29:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Bunny99](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Bunny99](https://forum.rasa.com/u/Bunny99)\
**Post date:** [June 12, 2019, 11:29am UTC](https://forum.rasa.com/t/getting-error-in-google-assistant-when-i-am-trying-to-find-places-near-my-loction-using-googleplaces-apis/11367/1 "2019-06-12T11:29:27Z")

</div>

I am trying to implement ‘action\_place\_search’ (borrowed from “[tutorial-rasa-google-assistant/actions.py at master · RasaHQ/tutorial-rasa-google-assistant · GitHub](https://github.com/RasaHQ/tutorial-rasa-google-assistant/blob/master/place_finder/actions.py)”) to get the nearest shop based on latitude and longitude of the place selected by the user on google map

and getting this error:

events = action(dispatcher, tracker, domain) File “/home/arghya/rasa\_test/data/place\_finder/actions.py”, line 34, in run origin\_lat = get\_origin[‘location’][‘lat’] KeyError: ‘location’

How to solve this issue .Please help me

Thank you

---

_[View the full topic](https://forum.rasa.com/t/getting-error-in-google-assistant-when-i-am-trying-to-find-places-near-my-loction-using-googleplaces-apis/11367)._
