I want to display nearby points stored in a database on a map. However, there are over 1000 points, and I am having trouble figuring out how to construct that data.
For example, if you search for "McDonald's" using the Google Maps app, it will show nearby McDonald's instead of showing you a McDonald's 1000 km away.
I'm trying to use Firebase's Cloud Firestore for my database, is this appropriate? Do you think Cloud Firestore is not suitable for this because of the payment per document?
One of the data is like:
{
"name": "1",
"cord": {
"lat": ....,
"lon": ....,
},
"type": "pin",
....
}
I'm not sure if Firebase Storage is suitable for that amount of data. Instead of using latitude and longitude, you might want to use geohashes. They can help you manage and search your location data more easily as well as storing less data, and reducing the costs.