Design an App Using N1QL’s CURL Function

With the addition of the CURL function in N1QL, interacting with external JSON endpoints and developer APIs such as the Google Maps API has become easier. To learn more about CURL(), check out this article. 
Let’s see how to design a simple JavaScript application using CURL, the Google Maps API, and the Yelp Developer API to find certain types of local businesses that satisfy any input criteria within a certain distance from a given address.