Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/416.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用JS将两个值(lat lng)传递给GET请求的一个参数键_Javascript_Jquery - Fatal编程技术网

Javascript 使用JS将两个值(lat lng)传递给GET请求的一个参数键

Javascript 使用JS将两个值(lat lng)传递给GET请求的一个参数键,javascript,jquery,Javascript,Jquery,嘿,我正在尝试对yelpapi()进行请求调用。然而,我在尝试将两个lat lng坐标值传递给一个参数cll时遇到了一个问题。cll键需要两个双精度值(lat和lng)。我尝试过使用逗号作为分隔符来创建两个点的字符串连接。我还尝试使用decodeURI()和encodeURI()方法来更改逗号,但这也不起作用。我还尝试将值作为两个点的数组传入,但没有成功:/ 下面是我如何使用OAUTH传递参数来查询我的参数 var parameters = []; parameters.push(['term'

嘿,我正在尝试对yelpapi()进行请求调用。然而,我在尝试将两个lat lng坐标值传递给一个参数cll时遇到了一个问题。cll键需要两个双精度值(lat和lng)。我尝试过使用逗号作为分隔符来创建两个点的字符串连接。我还尝试使用decodeURI()和encodeURI()方法来更改逗号,但这也不起作用。我还尝试将值作为两个点的数组传入,但没有成功:/

下面是我如何使用OAUTH传递参数来查询我的参数

var parameters = [];
parameters.push(['term', term]);
parameters.push(['limit', limit]);
parameters.push(['cll', latlngString]);
// latlngString = (lat.toString() + " , " +lng.toString());
.....

var parameterMap = OAuth.getParameterMap(message.parameters);
有人知道在发出GET请求时将两个值传递给一个键的正确方式吗

谢谢

我想(关键词)我找到了,这可能是我见过的最愚蠢/最烦人的事情之一

记下你给我的地址

https://api.yelp.com/v2/search?callback=cb&term=food&limit=5&cll=33.1866159649979%2C-117.35905740908515&callback=cb
显然,您已经编辑掉了从oAuth和其他任何地方传递的密钥和其他信息。两件随机的事情是,
callback=cb
部分在这里出现了两次,虽然理论上它不会导致服务器端出现任何问题,但在技术上是不正确的

最大的问题是您没有包含位置变量

我已经把你的请求带进了邮递员的邮箱,加上了我自己的证件(而且我不知道那些纬度和经度的方向,就在离我最近的城市旧金山),显然我的信息已经被删除了,这就是我发送的请求。请注意,唯一的区别是我传递了一个位置变量。(即使使用
,“
”,“
进行了测试,我仍然得到了相同的响应,因此第一条建议并没有真正改变任何东西)

邮递员回复如下:

{
    "region": {
        "span": {
            "latitude_delta": 0.017412363835347833,
            "longitude_delta": 0.02850394313139759
        },
        "center": {
            "latitude": 37.78660181083425,
            "longitude": -122.408286062213
        }
    },
    "total": 13061,
    "businesses": [{
        "is_claimed": true,
        "rating": 4.5,
        "mobile_url": "https://m.yelp.com/biz/southern-comfort-kitchen-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "rating_img_url": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
        "review_count": 115,
        "name": "Southern Comfort Kitchen",
        "rating_img_url_small": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
        "url": "https://www.yelp.com/biz/southern-comfort-kitchen-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "categories": [["Food Trucks", "foodtrucks"], ["Cajun/Creole", "cajun"]],
        "phone": "5105496155",
        "snippet_text": "Heard about their amazing southern fried chicken sandwich from my coworkers. So when their truck came around I had to try it! \n\nThe southern fried chicken...",
        "image_url": "https://s3-media1.fl.yelpcdn.com/bphoto/Zxsno5qdvyZvXuD7C1WC2Q/ms.jpg",
        "snippet_image_url": "https://s3-media3.fl.yelpcdn.com/photo/yIuFnDaqwBmeRv_ihUcufw/ms.jpg",
        "display_phone": "+1-510-549-6155",
        "rating_img_url_large": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
        "id": "southern-comfort-kitchen-san-francisco",
        "is_closed": false,
        "location": {
            "city": "San Francisco",
            "display_address": ["Hayes Valley", "San Francisco, CA 94102"],
            "geo_accuracy": 5.0,
            "neighborhoods": ["Hayes Valley", "Civic Center"],
            "postal_code": "94102",
            "country_code": "US",
            "address": [],
            "coordinate": {
                "latitude": 37.78291,
                "longitude": -122.41352
            },
            "state_code": "CA"
        }
    }, {
        "is_claimed": true,
        "rating": 4.5,
        "mobile_url": "https://m.yelp.com/biz/tacorea-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "rating_img_url": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
        "review_count": 366,
        "name": "Tacorea",
        "rating_img_url_small": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
        "url": "https://www.yelp.com/biz/tacorea-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "categories": [["Mexican", "mexican"], ["Korean", "korean"], ["Latin American", "latin"]],
        "menu_date_updated": 1472899698,
        "phone": "4158851325",
        "snippet_text": "We were staying a week in SAN Francisco a few blocks from this place. As MN natives living in an area with amazing Mexican food we needed to experience the...",
        "image_url": "https://s3-media1.fl.yelpcdn.com/bphoto/7sOn8_P7Hxb0ZkM55tz3mg/ms.jpg",
        "snippet_image_url": "https://s3-media4.fl.yelpcdn.com/photo/S_KZiQ1wHkS0D469bXVDdA/ms.jpg",
        "display_phone": "+1-415-885-1325",
        "rating_img_url_large": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
        "menu_provider": "single_platform",
        "id": "tacorea-san-francisco",
        "is_closed": false,
        "location": {
            "cross_streets": "Taylor St \u0026 Mason St",
            "city": "San Francisco",
            "display_address": ["809 Bush St", "Union Square", "San Francisco, CA 94108"],
            "geo_accuracy": 9.5,
            "neighborhoods": ["Union Square", "Lower Nob Hill"],
            "postal_code": "94108",
            "country_code": "US",
            "address": ["809 Bush St"],
            "coordinate": {
                "latitude": 37.789806,
                "longitude": -122.410709
            },
            "state_code": "CA"
        }
    }, {
        "is_claimed": true,
        "rating": 4.5,
        "mobile_url": "https://m.yelp.com/biz/hot-sauce-and-panko-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "rating_img_url": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
        "review_count": 783,
        "name": "Hot Sauce and Panko",
        "rating_img_url_small": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
        "url": "https://www.yelp.com/biz/hot-sauce-and-panko-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "categories": [["Chicken Wings", "chicken_wings"], ["Specialty Food", "gourmet"]],
        "menu_date_updated": 1472730119,
        "phone": "4153591908",
        "snippet_text": "If I can give this place more than 5 stars, I WOULD! I LA LA LA LOVE HOT SAUCE AND PANKO!  Coming here, I was not expecting much. In fact, when my friend...",
        "image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/vKQD4EF6xk7_ryHtgiTAJA/ms.jpg",
        "snippet_image_url": "https://s3-media2.fl.yelpcdn.com/photo/nAggqOjIiqELwX2D_RRRag/ms.jpg",
        "display_phone": "+1-415-359-1908",
        "rating_img_url_large": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
        "menu_provider": "single_platform",
        "id": "hot-sauce-and-panko-san-francisco",
        "is_closed": false,
        "location": {
            "cross_streets": "Washington St \u0026 Jackson St",
            "city": "San Francisco",
            "display_address": ["1468 Hyde St", "Nob Hill", "San Francisco, CA 94109"],
            "geo_accuracy": 9.5,
            "neighborhoods": ["Nob Hill"],
            "postal_code": "94109",
            "country_code": "US",
            "address": ["1468 Hyde St"],
            "coordinate": {
                "latitude": 37.7945165216685,
                "longitude": -122.417876198887
            },
            "state_code": "CA"
        }
    }, {
        "is_claimed": true,
        "rating": 4.5,
        "mobile_url": "https://m.yelp.com/biz/hrd-san-francisco-4?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "rating_img_url": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
        "review_count": 1951,
        "name": "HRD",
        "rating_img_url_small": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
        "url": "https://www.yelp.com/biz/hrd-san-francisco-4?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "categories": [["Asian Fusion", "asianfusion"], ["Latin American", "latin"], ["Middle Eastern", "mideastern"]],
        "menu_date_updated": 1481879601,
        "phone": "4155432355",
        "snippet_text": "Korean Mexican fusion at its finest! I ordered the eggplant katsu in a po' boy and it was delicious (but that might be because I'm partial to eggplant)....",
        "image_url": "https://s3-media1.fl.yelpcdn.com/bphoto/ImvLt9I8ACHwfYthZw8vVw/ms.jpg",
        "snippet_image_url": "https://s3-media3.fl.yelpcdn.com/photo/LmU4LKuS7iq8kxxcI3lwDw/ms.jpg",
        "display_phone": "+1-415-543-2355",
        "rating_img_url_large": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
        "menu_provider": "eat24",
        "id": "hrd-san-francisco-4",
        "is_closed": false,
        "location": {
            "cross_streets": "Taber Aly \u0026 Park Ave",
            "city": "San Francisco",
            "display_address": ["521A 3rd St", "SoMa", "San Francisco, CA 94107"],
            "geo_accuracy": 9.5,
            "neighborhoods": ["SoMa"],
            "postal_code": "94107",
            "country_code": "US",
            "address": ["521A 3rd St"],
            "coordinate": {
                "latitude": 37.7811065758548,
                "longitude": -122.395329724426
            },
            "state_code": "CA"
        }
    }, {
        "is_claimed": true,
        "rating": 4.5,
        "mobile_url": "https://m.yelp.com/biz/box-kitchen-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "rating_img_url": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
        "review_count": 431,
        "name": "Box Kitchen",
        "rating_img_url_small": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
        "url": "https://www.yelp.com/biz/box-kitchen-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "categories": [["Food Stands", "foodstands"], ["Burgers", "burgers"]],
        "phone": "4155807170",
        "snippet_text": "Pretty much what most folks have said on here.  I love that you walk up to a door and order your food in an alley.  Bottom line is that the food is...",
        "image_url": "https://s3-media2.fl.yelpcdn.com/bphoto/RgSY7vrLUfwWRh0-KuUpKQ/ms.jpg",
        "snippet_image_url": "https://s3-media2.fl.yelpcdn.com/photo/4KoZLFB1sEYvTd9baSa2lg/ms.jpg",
        "display_phone": "+1-415-580-7170",
        "rating_img_url_large": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
        "id": "box-kitchen-san-francisco",
        "is_closed": false,
        "location": {
            "cross_streets": "5th St \u0026 Mary St",
            "city": "San Francisco",
            "display_address": ["431 Natoma St", "SoMa", "San Francisco, CA 94103"],
            "geo_accuracy": 9.5,
            "neighborhoods": ["SoMa"],
            "postal_code": "94103",
            "country_code": "US",
            "address": ["431 Natoma St"],
            "coordinate": {
                "latitude": 37.7811510761365,
                "longitude": -122.40636505138
            },
            "state_code": "CA"
        }
    }]
}
还有我提出了同样的认证请求(在查找了那些lat/long坐标后),只是将位置更改为圣地亚哥


希望有帮助。

快速查看文档后,尝试删除字符串的
“,”
部分中的空格。我不知道这是否会很重要(从来没有使用过yelp api),但是试一试,让我知道。我不认为这会起作用,因为它只会将其读取为一个值,而不是两个不同的lat lng点。请注意,我说的是删除空格,而不是删除整个字符串。噢,对不起。但我也试过了,但还是没有成功。url请求将逗号读取为十六进制值%2C,因此我尝试解码并传递逗号,而不是逗号,我也不知道逗号是什么,您使用给定参数发出的请求的url是什么?啊,是的,我误读了文档。我原以为我们可以通过另一个lat lng点而不是位置。谢谢你的帮助!但遗憾的是,当我添加位置参数并包含lat lng坐标时,我不认为使用lat lng,而是在搜索时始终使用位置参数。我认为lat和long是一个参考点。事实上,我还没有在YelpAPI上做过很多工作,所以我恐怕我帮不上什么忙了。
{
    "region": {
        "span": {
            "latitude_delta": 0.017412363835347833,
            "longitude_delta": 0.02850394313139759
        },
        "center": {
            "latitude": 37.78660181083425,
            "longitude": -122.408286062213
        }
    },
    "total": 13061,
    "businesses": [{
        "is_claimed": true,
        "rating": 4.5,
        "mobile_url": "https://m.yelp.com/biz/southern-comfort-kitchen-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "rating_img_url": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
        "review_count": 115,
        "name": "Southern Comfort Kitchen",
        "rating_img_url_small": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
        "url": "https://www.yelp.com/biz/southern-comfort-kitchen-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "categories": [["Food Trucks", "foodtrucks"], ["Cajun/Creole", "cajun"]],
        "phone": "5105496155",
        "snippet_text": "Heard about their amazing southern fried chicken sandwich from my coworkers. So when their truck came around I had to try it! \n\nThe southern fried chicken...",
        "image_url": "https://s3-media1.fl.yelpcdn.com/bphoto/Zxsno5qdvyZvXuD7C1WC2Q/ms.jpg",
        "snippet_image_url": "https://s3-media3.fl.yelpcdn.com/photo/yIuFnDaqwBmeRv_ihUcufw/ms.jpg",
        "display_phone": "+1-510-549-6155",
        "rating_img_url_large": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
        "id": "southern-comfort-kitchen-san-francisco",
        "is_closed": false,
        "location": {
            "city": "San Francisco",
            "display_address": ["Hayes Valley", "San Francisco, CA 94102"],
            "geo_accuracy": 5.0,
            "neighborhoods": ["Hayes Valley", "Civic Center"],
            "postal_code": "94102",
            "country_code": "US",
            "address": [],
            "coordinate": {
                "latitude": 37.78291,
                "longitude": -122.41352
            },
            "state_code": "CA"
        }
    }, {
        "is_claimed": true,
        "rating": 4.5,
        "mobile_url": "https://m.yelp.com/biz/tacorea-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "rating_img_url": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
        "review_count": 366,
        "name": "Tacorea",
        "rating_img_url_small": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
        "url": "https://www.yelp.com/biz/tacorea-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "categories": [["Mexican", "mexican"], ["Korean", "korean"], ["Latin American", "latin"]],
        "menu_date_updated": 1472899698,
        "phone": "4158851325",
        "snippet_text": "We were staying a week in SAN Francisco a few blocks from this place. As MN natives living in an area with amazing Mexican food we needed to experience the...",
        "image_url": "https://s3-media1.fl.yelpcdn.com/bphoto/7sOn8_P7Hxb0ZkM55tz3mg/ms.jpg",
        "snippet_image_url": "https://s3-media4.fl.yelpcdn.com/photo/S_KZiQ1wHkS0D469bXVDdA/ms.jpg",
        "display_phone": "+1-415-885-1325",
        "rating_img_url_large": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
        "menu_provider": "single_platform",
        "id": "tacorea-san-francisco",
        "is_closed": false,
        "location": {
            "cross_streets": "Taylor St \u0026 Mason St",
            "city": "San Francisco",
            "display_address": ["809 Bush St", "Union Square", "San Francisco, CA 94108"],
            "geo_accuracy": 9.5,
            "neighborhoods": ["Union Square", "Lower Nob Hill"],
            "postal_code": "94108",
            "country_code": "US",
            "address": ["809 Bush St"],
            "coordinate": {
                "latitude": 37.789806,
                "longitude": -122.410709
            },
            "state_code": "CA"
        }
    }, {
        "is_claimed": true,
        "rating": 4.5,
        "mobile_url": "https://m.yelp.com/biz/hot-sauce-and-panko-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "rating_img_url": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
        "review_count": 783,
        "name": "Hot Sauce and Panko",
        "rating_img_url_small": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
        "url": "https://www.yelp.com/biz/hot-sauce-and-panko-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "categories": [["Chicken Wings", "chicken_wings"], ["Specialty Food", "gourmet"]],
        "menu_date_updated": 1472730119,
        "phone": "4153591908",
        "snippet_text": "If I can give this place more than 5 stars, I WOULD! I LA LA LA LOVE HOT SAUCE AND PANKO!  Coming here, I was not expecting much. In fact, when my friend...",
        "image_url": "https://s3-media4.fl.yelpcdn.com/bphoto/vKQD4EF6xk7_ryHtgiTAJA/ms.jpg",
        "snippet_image_url": "https://s3-media2.fl.yelpcdn.com/photo/nAggqOjIiqELwX2D_RRRag/ms.jpg",
        "display_phone": "+1-415-359-1908",
        "rating_img_url_large": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
        "menu_provider": "single_platform",
        "id": "hot-sauce-and-panko-san-francisco",
        "is_closed": false,
        "location": {
            "cross_streets": "Washington St \u0026 Jackson St",
            "city": "San Francisco",
            "display_address": ["1468 Hyde St", "Nob Hill", "San Francisco, CA 94109"],
            "geo_accuracy": 9.5,
            "neighborhoods": ["Nob Hill"],
            "postal_code": "94109",
            "country_code": "US",
            "address": ["1468 Hyde St"],
            "coordinate": {
                "latitude": 37.7945165216685,
                "longitude": -122.417876198887
            },
            "state_code": "CA"
        }
    }, {
        "is_claimed": true,
        "rating": 4.5,
        "mobile_url": "https://m.yelp.com/biz/hrd-san-francisco-4?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "rating_img_url": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
        "review_count": 1951,
        "name": "HRD",
        "rating_img_url_small": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
        "url": "https://www.yelp.com/biz/hrd-san-francisco-4?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "categories": [["Asian Fusion", "asianfusion"], ["Latin American", "latin"], ["Middle Eastern", "mideastern"]],
        "menu_date_updated": 1481879601,
        "phone": "4155432355",
        "snippet_text": "Korean Mexican fusion at its finest! I ordered the eggplant katsu in a po' boy and it was delicious (but that might be because I'm partial to eggplant)....",
        "image_url": "https://s3-media1.fl.yelpcdn.com/bphoto/ImvLt9I8ACHwfYthZw8vVw/ms.jpg",
        "snippet_image_url": "https://s3-media3.fl.yelpcdn.com/photo/LmU4LKuS7iq8kxxcI3lwDw/ms.jpg",
        "display_phone": "+1-415-543-2355",
        "rating_img_url_large": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
        "menu_provider": "eat24",
        "id": "hrd-san-francisco-4",
        "is_closed": false,
        "location": {
            "cross_streets": "Taber Aly \u0026 Park Ave",
            "city": "San Francisco",
            "display_address": ["521A 3rd St", "SoMa", "San Francisco, CA 94107"],
            "geo_accuracy": 9.5,
            "neighborhoods": ["SoMa"],
            "postal_code": "94107",
            "country_code": "US",
            "address": ["521A 3rd St"],
            "coordinate": {
                "latitude": 37.7811065758548,
                "longitude": -122.395329724426
            },
            "state_code": "CA"
        }
    }, {
        "is_claimed": true,
        "rating": 4.5,
        "mobile_url": "https://m.yelp.com/biz/box-kitchen-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "rating_img_url": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
        "review_count": 431,
        "name": "Box Kitchen",
        "rating_img_url_small": "https://s3-media2.fl.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
        "url": "https://www.yelp.com/biz/box-kitchen-san-francisco?adjust_creative=0fHKR3k58xfH-pxKxYNQdw\u0026utm_campaign=yelp_api\u0026utm_medium=api_v2_search\u0026utm_source=0fHKR3k58xfH-pxKxYNQdw",
        "categories": [["Food Stands", "foodstands"], ["Burgers", "burgers"]],
        "phone": "4155807170",
        "snippet_text": "Pretty much what most folks have said on here.  I love that you walk up to a door and order your food in an alley.  Bottom line is that the food is...",
        "image_url": "https://s3-media2.fl.yelpcdn.com/bphoto/RgSY7vrLUfwWRh0-KuUpKQ/ms.jpg",
        "snippet_image_url": "https://s3-media2.fl.yelpcdn.com/photo/4KoZLFB1sEYvTd9baSa2lg/ms.jpg",
        "display_phone": "+1-415-580-7170",
        "rating_img_url_large": "https://s3-media4.fl.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
        "id": "box-kitchen-san-francisco",
        "is_closed": false,
        "location": {
            "cross_streets": "5th St \u0026 Mary St",
            "city": "San Francisco",
            "display_address": ["431 Natoma St", "SoMa", "San Francisco, CA 94103"],
            "geo_accuracy": 9.5,
            "neighborhoods": ["SoMa"],
            "postal_code": "94103",
            "country_code": "US",
            "address": ["431 Natoma St"],
            "coordinate": {
                "latitude": 37.7811510761365,
                "longitude": -122.40636505138
            },
            "state_code": "CA"
        }
    }]
}