简体   繁体   中英

How to use Amazon DynamoDB to store spatial data?

I'm wanting to store & retrieve POIs near some location. Plan to use DynamoDB without any other backend service for the app.

How do I store POIs that can be geospatially searched to give nearest 10 results within 10km radius of some location ?

(I would prefer to accomplish this with DynamoDB as it is fully managed DB service & comes with a 0 initial costs.)

Is there any way to convert latitude/longitude to a set of hashes which can be range searched during retrieval ?

Since you are using Java, AWS have a library for doing this https://github.com/awslabs/dynamodb-geo

They also have a series of blog posts explaining how it works https://mobile.awsblog.com/post/TxWTJOSLE7O3J2/Geo-Library-for-Amazon-DynamoDB-Part-1-Table-Structure

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM