database design – Doing query with website

I want to create a website and I have a data set of schools locations stored in Mongodb . There will be a search box on my website and when I search for the name of the school, I want to get the coordinates of the school.

How can I apply the query I made on the website to the database. What are the processes returning to the back?

Can you show me a way?

I did research on this but could not find an explanatory narrative. I’m so stuck please help. Thank you.

NOT: I don’t have to use Mongodb.