---
title: "Discussion on \"How to add Geo Location Search with AWS Amplify and ElasticSearch - Day 4-5\" | Hashnode"
description: "Discussion on \"How to add Geo Location Search with AWS Amplify and ElasticSearch - Day 4-5\". As part of the #AmplifyHashnode hackathon, I've decided to build a restaurant review app that leverages React-Native and Amplify. This is day 4-5 of my journey.\nThe next big piece of the app is the discovery part and ElasticSearch just happens to be ..."
url: "https://hashnode.com/posts/how-to-add-geo-location-search-with-aws-amplify-and-elasticsearch-day-4-5/60298752355c6669fd17c1b2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to add Geo Location Search with AWS Amplify and ElasticSearch - Day 4-5](https://matthewmarks.hashnode.dev/how-to-add-geo-location-search-with-aws-amplify-and-elasticsearch-day-4-5?utm_source=hashnode&utm_medium=feed)

As part of the #AmplifyHashnode hackathon, I've decided to build a restaurant review app that leverages React-Native and Amplify. This is day 4-5 of my journey. The next big piece of the app is the discovery part and ElasticSearch just happens to be ...

Feb 14, 2021 · 9 min read · matthewmarks.hashnode.dev  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#amplifyhashnode](https://hashnode.com/tag/amplifyhashnode)
-   [#elasticsearch](https://hashnode.com/tag/elasticsearch)
-   [#graphql](https://hashnode.com/tag/graphql)

## Written by

[Matthew](https://hashnode.com/@andthensumm)

@andthensumm · Chicago, IL

  
[View profile](https://hashnode.com/@andthensumm)

You can get it

Heyooo, I'm a full stack React | Native | Servereless developer out here trying to bring his apps to life. Find me on twitter @andthensumm

## Responses 1

Markdown supported · ⌘↵ to post

[Zolcsi](https://hashnode.com/@Zolcsi)

[Apr 28, 2021](https://hashnode.com/posts/how-to-add-geo-location-search-with-aws-amplify-and-elasticsearch-day-4-5/60298752355c6669fd17c1b2/comment/608936031bb72c581861f8af)

Great article, thank you! I am wondering if it would be possible to give the establishment a radius field and in the query ask if the input location (without radius) is in the range of the establishment. How would you do it?

[Matthew](https://hashnode.com/@andthensumm)

[Apr 28, 2021](https://hashnode.com/posts/how-to-add-geo-location-search-with-aws-amplify-and-elasticsearch-day-4-5/60298752355c6669fd17c1b2/comment/608936031bb72c581861f8af#reply-6089745e1bb72c581861fe7c)

I don’t know about putting a radius field on the location but if you passed in the plceID into the filter params, it would have the same effect.

[Matthew](https://hashnode.com/@andthensumm)

[Apr 28, 2021](https://hashnode.com/posts/how-to-add-geo-location-search-with-aws-amplify-and-elasticsearch-day-4-5/60298752355c6669fd17c1b2/comment/608936031bb72c581861f8af#reply-608974bf72387b583d149589)

\`if (!$util.isNull($context.args.input.byPlaceID )) $util.qr($query.bool.must.add({ "match": { "placeID": "$context.args.input.byPlaceID" } }))

#end \`
