I'm making a search feature for a website which needs to return results close to the postcode that the user inputs to the search. It would function similarly to the search function on https://www.rightmove.co.uk/ but does not need to also accept names of cities.
So far I'm thinking of converting the users postcode to longitude/latitude and filtering the results based on how close they are to the input but I'm not sure if this is the correct approach.
I am using React/TS & I haven't written an API to filter and fetch the results from a database yet but it will either be written in golang or TS if that information is necessary.
Any additional direction would be appreciated, thanks!