获得下一组结果

时间:2018-11-27 22:13:04

标签: here-api

我已经搜索了周围,但似乎找不到答案,我需要从地方搜索中访问更多有价值的结果页面。我注意到在JSON响应中,存在一个带有URL的下一个字段,当在浏览器中单击该URL时,它会再调用20个结果。但是,我无法在C#应用程序中访问此字段。下面是JSON响应(文本格式)。

{
results: {next:https://places.cit.api.here.com/places/v1/discover/search;context=Zmxv...
items: [ 
{ The Botanist }
{ Alexanders Jazz Theatre Bar }
{ The Architect }
{ 1539 Restaurant & Bar }
{ Barlounge Chester }
{ Meze }
{ Hanky Panky Pancakes }
{ The Slowboat }
{ The Moorings }
{ Missoula }
{ Istanbul BBQ }
{ Chip-O-Dee }
{ The Flower Cup }
{ Mama K's Burritos }
{ The Stage Door Cafe Chester }
{ Cinderbox Coffee }
{ Wok&Go }
{ Covino }
{ Urbano 32 }
{ Beatons Tearooms }
]
}
search: {
context: { urn:nlp-types:place }
supportsPanning:true
ranking:category-recommendations
}
}

我的C#类用于访问字段,下一个字符串仅返回null:

[System.Serializable]
    public class Response
    {
        public results results;
    }

    [System.Serializable]
    public class results
    {
        public string next;
        public string previous;
        public items[] items;
    }

谢谢

1 个答案:

答案 0 :(得分:0)

Places API是从消费者角度构建的,并且仅限于返回位置周围的前100个(相关)POI。至今尚无获取所有POI的条款。

相关问题