I want to do the following.
I want to create an application that does the following
- Restaurants are located at the address where they are located.
- Person A opens the application and sees how many miles each restaurant is in its current location, sorted by nearest.
How can I do this in the most efficient way?
If the restaurant gives me its address, should I convert this address to longitude / latitude points, and then somehow use it to get the distance from the person. Current location? But how can I do this so efficiently that if there are 1000 addresses in the database, I can sort all these addresses efficiently - closest to person A first - without taking up too much time? Thank!
I am using django.
source
share