Answer the question
In order to leave comments, you need to log in
PouchDB (CouchDB) how to properly organize a GIS search by entity name?
Question of the following plan:
We have 3000+ points on the map entered into the database, each as a separate document with _id in the form of Geohash example:
{
"_id": "y1h8vmsum",
"_rev": "1-sdfsdfsdfsdfsdfsdfsdfsdf"
}
{
"_id": "0B3358C1-BA4B-4186-8795-9024203EB7DD",
"name": "Супер пупер товар"
}
{
"_id": "0B3358C1-BA4B-4186-8795-9024203EB7DD",
"name": "Супер пупер товар",
"points": [
"y1h8vmsum",
"y1h8vmvmv"
]
}
pouchBase.find({
selector: {
name: "Супер пупер товар",
"$elemMatch": {
"points": "... Каким то макаром поинты в радиусе"
}
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question