[Resolved] Order lists by distance from user's location


#1

Hi!

I need to display my places (not Google Places) on a list from an API (array). I want the list to be ordered by distance when the page loads. I need to create filters and a search box the db (API) too.

I’ve seeked for information in the forum and documentation, but haven’t found any way to perform it.

I would really appreciate some help.

Thanks in advance


#2

Hi @armin.breto, you would need to implement the geo sorting at your backend. Essentially you would send the location (lat and lon) from your app as parameters and perform the sorting, then return an array in sorted order. Implementing geo sort and search can be pretty complex and will depend on your backend platform’s ability to carry out that type of processing.


#3

Hi, Sue.

Many thanks.

Regards