Friday, 24 July 2020

Search by City and find closest matches

Hey Node-Community!I am currently building a small Node.js App where I have I want to give the user the chance to search by location (i.e. their city and/or street) and the app finds the closest items (think of Eventbrite where you can search for e.g. "New York Central Park" or "Brooklyn" and it outputs results matching that location).So I have app customers adding their items to the database and when they input their address it should be converted to geo coordinates and when a site visitor wants to search for e.g. "paris" it converts "paris" to geo coordinates and find all items that match a specific radius.Side note: I do have a little bit of Rails background, so if anyone is aware of the Geocoder gem — this is exactly what I want, but with/for node.Thank you!

Submitted July 24, 2020 at 07:31AM by thisisaloisson

No comments:

Post a Comment