title: AWS DynamoDB geospatial query using ElasticSearch
body: <p>I am storing transactions tagged with geo-coordinates in a <code>DynamoDB</code> table. I want to do a geo-spatial query to find all transactions within e.g. 10 miles distance from an input pair of coordinates. </p>
  
  <p>I saw <a href="https://youtu.be/mQBtbHKSdAQ?t=1992" rel="nofollow noreferrer">here</a> that I could perform such a geo-spatial query using AWS <code>ElasticSearch</code>. However, I am not sure if I want to pay the hourly fee for the service at this time if that is the only purpose I will use it for. </p>
  
  <p>An alternative I thought of is to keep only 4 digits after the decimal point of each coordinate when storing and read all the transactions that have the same set of coordinates since they would essentially belong to the same like <code>100~200 m^2</code> range. This isn't a very good solution in terms of accuracy and range.</p>
  
  <p>Any suggestion to a better alternative for such a geo-spatial query or on whether <code>ElasticSearch</code> would be a worthy investment based on time/cost?</p>