A map for your dietary needs
Sahana S, Priya R, Dhanya Sree P
Lovely leaf is a web application that allows a user to input their dietary restriction and location and get a list of restaurants that suit their tastes and dietary needs. The app utilizes two APIs to create a custom restaurant list that is listed out and displayed on a map.
For those with dietary restrictions, the search for a place to eat can be difficult. A quick Google search returns a generic list of restaurants that are not clearly tagged to match dietary restrictions. The consequences of this misinformation can range from mild inconvenience to serious health scares.
We wanted to create a web application that would be targeted towards users with dietary restrictions, that could classify and locate restaurants by the restriction. Using the Foursquare and Mapbox apis, we created an application that allows a user to input their dietary restriction and location and get a customized list of restaurants that suit their tastes.
We had to learn to integrate the Mapbox and Foursquare APIs into an HTML template, which took up the majority of our time. The Foursquare API returned the data in the form of an array. Therefore we had to access specific portions of the array to retrieve the right information that we needed. In order to overcome this, we combined the Mapbox and Foursquare API documents. We had to look at the console log and retrieve the information from the array. We added that information to our code to incorporate the information into the website and the map.