I'm writing a web application using the google maps api v3, which displays places of interest for my customers. These won't be places which appear on google maps, and I want users to be able to filter the results to match their specific needs.
I've got it working so that the map centres on the user's current location on load. However, it does allow them to type in another address if they wish. When I do this, the map default to results in the American region.
Is there any way to get the region parameter for the map from the user's current location and use this to get more relevant results?
Another function I would like to implement is searching only for results within a certain (user-specifiable) distance from the given location. Currently all the places are stored in a MySQL database (with their address, latitude and longitude) and I iterate through all places and use this formula to determine the distance. I anticipate that I might get 50,000 places in the database.
Should I be worried about response time for this calculation, and is there a way I can make it quicker? Is having my data stored in a MySQL database a good idea in general for this kind of application?