JPA(Hibernate) - find nearest 10 objects by longitude / latitude

Viewed 1618

How can I query nearest 10 objects ( Distributors in my case) by longitude / latitude.

Every Distributor have longitude / latitude coordinates. I'm using and Spring Data for simple queries, but as I know, there is no option to use Spring data for this kind of query.

1 Answers
Related