I am looking for code to find the nearest location.
Currently storing - latitude and longitude in the entity (ie address). when user search it, want to display the result with 2km radius.
User entity:
private double latitude;
private double longitude;