javascript - Node.js: Find Nearby Events -
this question has answer here:
- geolocation mysql query 1 answer
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
Post a Comment