获取下一组结果
Obtaining next set of results
我四处搜索但似乎找不到答案,我需要从地点搜索中访问更多有价值的结果页面。我注意到在 JSON 响应中有一个带有 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# 类 用于访问字段,下一个字符串只是 returns null:
[System.Serializable]
public class Response
{
public results results;
}
[System.Serializable]
public class results
{
public string next;
public string previous;
public items[] items;
}
谢谢
Places API 是从消费者的角度构建的,仅限于 return 某个地点周围的前 100 个(相关)兴趣点。截至今天,没有提供获取所有 POI 的规定。
我四处搜索但似乎找不到答案,我需要从地点搜索中访问更多有价值的结果页面。我注意到在 JSON 响应中有一个带有 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# 类 用于访问字段,下一个字符串只是 returns null:
[System.Serializable]
public class Response
{
public results results;
}
[System.Serializable]
public class results
{
public string next;
public string previous;
public items[] items;
}
谢谢
Places API 是从消费者的角度构建的,仅限于 return 某个地点周围的前 100 个(相关)兴趣点。截至今天,没有提供获取所有 POI 的规定。