我正在尝试研究如何使用restKit从foursquare获取一些数据.
我正在使用本教程.
使用此代码
我尝试做一些不同的,所以我尝试从类别中获取数据.
这是foursqure的json看起来像
{
venue: {
id: "40a55d80f964a52020f31ee3",
name: "Clinton St. Baking Co. & Restaurant",
contact: {
phone: "6466026263",
formattedPhone: "(646) 602-6263"
},
location: {
address: "4 Clinton St",
crossStreet: "at E Houston St.",
lat: 40.721294,
lng: -73.983994,
postalCode: "10002",
city: "New York",
state: "NY",
country: "United States",
cc: "US"
},
canonicalUrl: "https://foursquare.com/v/clinton-st-baking-co--restaurant/40a55d80f964a52020f31ee3",
categories: [
{
id: "4bf58dd8d48988d143941735",
name: "Breakfast Spot",
pluralName: "Breakfast Spots",
shortName: "Breakfast / Brunch",
icon: {
prefix: "https://foursquare.com/img/categories_v2/food/breakfast_",
suffix: ".png"
}, …Run Code Online (Sandbox Code Playgroud)