javascript - Node.js: Find Nearby Events -


this question has answer here:

we have node.js mysql.

in database store longitude, latitude, , street addresses of events (concerts & comedy shows) happening on u.s.

scenario: when user logs in, based on current location (longitude , latitude), i'd provide list of events taking place within 30 mile radius. what's best practice provide such setup node.js , mysql?

edit

i.e. if have database of 10,000 locations (lat & lng), what's best way calculate of these locations in within 30miles radius of given location.

your question broad & unspecific. provided detailed answer how calculate distances mysql using point & geometry functions here. more details here on official mysql site.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -