---
title: "Comment by Zolcsi on \"How to add Geo Location Search with AWS Amplify and ElasticSearch - Day 4-5\" | Hashnode"
description: "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 ra"
url: "https://hashnode.com/posts/how-to-add-geo-location-search-with-aws-amplify-and-elasticsearch-day-4-5/60298752355c6669fd17c1b2/comment/608936031bb72c581861f8af"
---

[Discussion](https://hashnode.com/posts/how-to-add-geo-location-search-with-aws-amplify-and-elasticsearch-day-4-5/60298752355c6669fd17c1b2)

Comment [How to add Geo Location Search with AWS Amplify and ElasticSearch - Day 4-5](https://hashnode.com/posts/how-to-add-geo-location-search-with-aws-amplify-and-elasticsearch-day-4-5/60298752355c6669fd17c1b2)

[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 \`
