Strapi: Geolocation based queries support?

Created on 29 Nov 2018  路  1Comment  路  Source: strapi/strapi






Informations

  • Node.js version: 10.12.0
  • npm version: 6.4.1
  • Strapi version: 3.0.0-alpha.15
  • Database: MongoDB
  • Operating system: Ubuntu

What is the current behavior?

Hi i have a problem with queries, i want to search some items based on it's location (lat and long). Is there anything right now built in in strapi to help me with it.

Is there anyway i can write my own query for a specific request or is there any plugin or something to help me. Any help would be grateful.

help wanted

>All comments

Hello @sidsaxena0 !

Did you check filters https://strapi.io/documentation/3.x.x/guides/filters.html

If it doesn't match with your needs, you can create your own route and controller to make your request:

And then you will have Mongoose collection instance of your model to create your own query. (Check the service of your API to show how make queries)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rashidul420222 picture Rashidul420222  路  3Comments

GreenGremlin picture GreenGremlin  路  3Comments

rahilwazir picture rahilwazir  路  3Comments

quibaritaenperdresatrompe picture quibaritaenperdresatrompe  路  3Comments

jskorepa picture jskorepa  路  3Comments