Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.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
Json 这里是API加载';下一代信息&x27;_Json_Here Api - Fatal编程技术网

Json 这里是API加载';下一代信息&x27;

Json 这里是API加载';下一代信息&x27;,json,here-api,Json,Here Api,我已经被HERE.com API弄湿了脚,我似乎不知道如何加载下一页的信息。我正在探索api的以下部分: https://developer.here.com/api-explorer/rest/geocoder/reverse-geocode 我将半径增加到1000米,并将maxresults设置为100(这就是它的最大值) 现在我没想到它会在1000米半径范围内加载任何地址。我想看看如何加载接下来的100个结果,或者下一页。我在JSON输出的顶部看到了以下内容,并认为我可以以某种方式进入第

我已经被HERE.com API弄湿了脚,我似乎不知道如何加载下一页的信息。我正在探索api的以下部分:

https://developer.here.com/api-explorer/rest/geocoder/reverse-geocode
我将半径增加到1000米,并将maxresults设置为100(这就是它的最大值)

现在我没想到它会在1000米半径范围内加载任何地址。我想看看如何加载接下来的100个结果,或者下一页。我在JSON输出的顶部看到了以下内容,并认为我可以以某种方式进入第2页。我觉得自己真的很傻,因为我看不到一种方法来指定一个参数来实现这一点,也看不到一种方法来继续加载结果

"MetaInfo": {
      "Timestamp": "2016-04-16T17:35:51.493+0000",
      "NextPageInformation": "2"
}
下面是返回的JSON的较大摘录:

{
  "Response": {
    "MetaInfo": {
      "Timestamp": "2016-04-16T17:35:51.493+0000",
      "NextPageInformation": "2"
    },
    "View": [
      {
        "_type": "SearchResultsViewType",
        "ViewId": 0,
        "Result": [
          {
            "Relevance": 1,
            "Distance": 16.3,
            "MatchLevel": "houseNumber",
            "MatchQuality": {
              "Country": 1,
              "State": 1,
              "County": 1,
              "City": 1,
              "District": 1,
              "Street": [
                1
              ],
              "HouseNumber": 1,
              "PostalCode": 1
            },
            "MatchType": "pointAddress",
            "Location": {
              "LocationId": "NT_puy2gbuVuGd-an6zGdSyNA_xADM",
              "LocationType": "address",
              "DisplayPosition": {
                "Latitude": 41.88403,
                "Longitude": -87.63881
              },
              "NavigationPosition": [
                {

我刚刚查看了他们的文档,似乎有一个参数“pageinformation”,可以添加到URL中。不确定它是否有效,但您可以尝试一下

当响应被分成多个页面时,标识要返回的页面的键

{
  "Response": {
    "MetaInfo": {
      "Timestamp": "2016-04-16T17:35:51.493+0000",
      "NextPageInformation": "2"
    },
    "View": [
      {
        "_type": "SearchResultsViewType",
        "ViewId": 0,
        "Result": [
          {
            "Relevance": 1,
            "Distance": 16.3,
            "MatchLevel": "houseNumber",
            "MatchQuality": {
              "Country": 1,
              "State": 1,
              "County": 1,
              "City": 1,
              "District": 1,
              "Street": [
                1
              ],
              "HouseNumber": 1,
              "PostalCode": 1
            },
            "MatchType": "pointAddress",
            "Location": {
              "LocationId": "NT_puy2gbuVuGd-an6zGdSyNA_xADM",
              "LocationType": "address",
              "DisplayPosition": {
                "Latitude": 41.88403,
                "Longitude": -87.63881
              },
              "NavigationPosition": [
                {