This Choreo Retrieves information from multiple APIs about places near a set of coordinates. Below is an example of inputs used to retrieve data from Google Places and Yelp.
Latitude: 40.713698
Longitude: -73.94277
APICredentials:
{
"Foursquare": {
"OauthToken": "YOUR FOURSQUARE OAUTH TOKEN"
},
"GooglePlaces": {
"Key": "YOUR GOOGLE PLACES KEY"
},
"Yelp": {
"Token": "YOUR YELP TOKEN",
"TokenSecret": "YOUR TELP TOKEN SECRET-EFTZ1OdBIKE",
"ConsumerKey": "YOUR YELP CONSUMER KEY",
"ConsumerSecret": "YOUR YELP CONSUMER SECRET"
}
}
This Choreo chains one or more "Child Choreos" together. Below is a list of the Temboo Library Choreos that are called by this Choreo:
- Library.Google.Places.PlaceSearch
- Library.Yelp.SearchByCoordinates
- Library.Foursquare.Venues.SearchVenues
The following is a sample of the JSON information returned by this Choreo:
{
"google_places": [
{
"name": "Peculier Pub",
"type": [
"bar",
"restaurant",
"food",
"establishment"
],
"icon": "http://maps.gstatic.com/mapfiles/place_api/icons/bar-71.png",
"rating": "3.8",
"vicinity": "145 Bleecker Street, New York"
},
{
"name": "The Beekman Pub",
"type": [
"bar",
"restaurant",
"food",
"establishment"
],
"icon": "http://maps.gstatic.com/mapfiles/place_api/icons/bar-71.png",
"rating": "3.7",
"vicinity": "15 Beekman Street #17, New York"
},
{
"name": "Reade Street Pub & Kitchen",
"type": [
"store",
"meal_takeaway",
"bar",
"restaurant",
"food",
"establishment"
],
"icon": "http://maps.gstatic.com/mapfiles/place_api/icons/bar-71.png",
"rating": "4.5",
"vicinity": "135 Reade Street, New York"
},
{
"name": "Ear Inn",
"type": [
"bar",
"restaurant",
"food",
"establishment"
],
"icon": "http://maps.gstatic.com/mapfiles/place_api/icons/bar-71.png",
"rating": "4.0",
"vicinity": "326 Spring Street, New York"
}
],
"yelp": [
{
"id": "brandy-library-new-york",
"display_phone": "+1-212-226-5545",
"address": "25 N Moore St",
"mobile_url": "http://m.yelp.com/biz/brandy-library-new-york",
"name": "Brandy Library",
"snippet_text": "Cocktail bars are a dime a dozen in this city but finding a truly classy and sophisticated watering spot is still a treasure. Brandy Library is one such...",
"url": "http://www.yelp.com/biz/brandy-library-new-york"
},
{
"id": "b-flat-new-york",
"display_phone": "+1-212-219-2970",
"address": "277 Church St",
"mobile_url": "http://m.yelp.com/biz/b-flat-new-york",
"name": "B Flat",
"snippet_text": "I love the fact that B Flat is somewhat hidden from the main road since you have to go downstairs to get there. I honestly can't say enough great things...",
"url": "http://www.yelp.com/biz/b-flat-new-york"
},
{
"id": "anotheroom-new-york",
"display_phone": "+1-212-226-1418",
"address": "249 W Broadway",
"mobile_url": "http://m.yelp.com/biz/anotheroom-new-york",
"name": "Anotheroom",
"snippet_text": "I can't get enough of these Room-family lounges. Great beer, great wine, open-air front-end seating with little dark nooks in the back. This one looks...",
"url": "http://www.yelp.com/biz/anotheroom-new-york"
}
],
"foursquare": [
{
"category": "Dive Bar",
"hereNow": "0",
"id": "3fd66200f964a52081e61ee3",
"likes": "0",
"address": "1 Lispenard St",
"city": "New York",
"crossStreet": "at W Broadway",
"distance": "248",
"lat": "40.7207",
"lng": "-74.00512",
"postalCode": "10013",
"state": "NY",
"name": "Nancy Whiskey Pub",
"phone": "(212) 226-9943"
},
{
"category": "Sushi Restaurant",
"hereNow": "0",
"id": "4b78ac62f964a52047dd2ee3",
"likes": "0",
"address": "77 Hudson St.",
"city": "New York",
"crossStreet": "at Harrison St.",
"distance": "280",
"lat": "40.718426",
"lng": "-74.00897",
"postalCode": "10013",
"state": "NY",
"name": "Zutto Japanese American Pub",
"phone": "(212) 233-3287"
},
{
"category": "Bar",
"hereNow": "0",
"id": "42a39200f964a520e6241fe3",
"likes": "0",
"address": "145 Bleecker St",
"city": "New York",
"crossStreet": "at Laguardia Pl",
"distance": "1206",
"lat": "40.728207",
"lng": "-73.999275",
"postalCode": "10012",
"state": "NY",
"name": "Peculier Pub",
"phone": "(212) 353-1327"
}
]
}