json 这里批量地理编码

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json 这里批量地理编码相关的知识,希望对你有一定的参考价值。

{
  "swagger": "2.0",
  "info": {
    "version": "1.0",
    "title": "Batch Geocoder API",
    "description": "The **HERE Batch Geocoder API** is a web service that allows users to geocode large data sets (hundreds of thousands). Users upload a single input file, the service processes the data asynchronously and returns a single file with the results.\n\nThis example set works with version **6.2.34** or higher\n\nAdditional information can be found on [developer.here.com](https://developer.here.com/rest-apis/documentation/batch-geocoder)"
  },
  "host": "batch.geocoder.cit.api.here.com",
  "basePath": "/6.2",
  "schemes": [
    "http"
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/jobs/puwWrv32YOU24y8MNoUr793chFAI36aC/result": {
      "get": {
        "description": "*Download a zipped geocoded dataset from a completed job*\n\nTo download the results, make a request to the `jobs/requestId/result `endpoint and unzip the file.\n\n\n\n* **app_id**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_id` with every request.  \n\n* **app_code**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_code` with every request.  \n\n* **Content-Type**  `header`\n\n  Specifies the media type of the body in the GET request.  ",
        "summary": "Download Geocoded Data",
        "operationId": "JobsPuwWrv32YOU24y8MNoUr793chFAI36aCResultGet",
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "name": "app_id",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "app_code",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "type": "string",
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [],
        "x-unitTests": [
          {
            "request": {
              "method": "GET",
              "uri": "/jobs/puwWrv32YOU24y8MNoUr793chFAI36aC/result?app_id={{YOUR_APP_ID}}&app_code={{YOUR_APP_CODE}}",
              "headers": {
                "Content-Type": "application/octet-stream"
              }
            },
            "expectedResponse": {
              "x-allowExtraHeaders": true,
              "x-bodyMatchMode": "NONE",
              "x-arrayOrderedMatching": false,
              "x-arrayCheckCount": false,
              "x-matchResponseSchema": true,
              "headers": {}
            },
            "x-testShouldPass": true,
            "x-testEnabled": true,
            "x-testName": "Download Geocoded Data",
            "x-testDescription": "*Download a zipped geocoded dataset from a completed job*\n\nTo download the results, make a request to the `jobs/requestId/result `endpoint and unzip the file.\n\n\n\n* **app_id**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_id` with every request.  \n\n* **app_code**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_code` with every request.  \n\n* **Content-Type**  `header`\n\n  Specifies the media type of the body in the GET request.  "
          }
        ],
        "x-operation-settings": {
          "CollectParameters": false,
          "AllowDynamicQueryParameters": false,
          "AllowDynamicFormParameters": false,
          "IsMultiContentStreaming": false
        }
      }
    },
    "/jobs/puwWrv32YOU24y8MNoUr793chFAI36aC": {
      "get": {
        "description": "*Request the status of a batch geocoder job*\n\nTo check the status, make a request to the `jobs` endpoint  appending the `requestId` and using the parameter `action=status `\n  \n\n\n\n* **action**  `enum`\n \\- Type of request  \n\n Valid values are : `cancel`, `runs`, `status`\n\n* **app_code**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_code` with every request.  \n\n* **app_id**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_id` with every request.  ",
        "summary": "Batch Geocode Job Status",
        "operationId": "JobsPuwWrv32YOU24y8MNoUr793chFAI36aCGet",
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "app_code",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "app_id",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [],
        "x-unitTests": [
          {
            "request": {
              "method": "GET",
              "uri": "/jobs/puwWrv32YOU24y8MNoUr793chFAI36aC?action=status&app_code={{YOUR_APP_CODE}}&app_id={{YOUR_APP_ID}}"
            },
            "expectedResponse": {
              "x-allowExtraHeaders": true,
              "x-bodyMatchMode": "NONE",
              "x-arrayOrderedMatching": false,
              "x-arrayCheckCount": false,
              "x-matchResponseSchema": true,
              "headers": {}
            },
            "x-testShouldPass": true,
            "x-testEnabled": true,
            "x-testName": "Batch Geocode Job Status",
            "x-testDescription": "*Request the status of a batch geocoder job*\n\nTo check the status, make a request to the `jobs` endpoint  appending the `requestId` and using the parameter `action=status `\n  \n\n\n\n* **action**  `enum`\n \\- Type of request  \n\n Valid values are : `cancel`, `runs`, `status`\n\n* **app_code**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_code` with every request.  \n\n* **app_id**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_id` with every request.  "
          }
        ],
        "x-operation-settings": {
          "CollectParameters": false,
          "AllowDynamicQueryParameters": false,
          "AllowDynamicFormParameters": false,
          "IsMultiContentStreaming": false
        }
      }
    },
    "/jobs": {
      "post": {
        "description": "* Start asynchronously geocoding a large set of addresses in one batch*\n\nSubmit an HTTP POST request with `action=run` and attach the input data to the body. \n  \n\n\n\n* **gen**  `number`\n \\- Enables/disables backward incompatible behavior in the API\n\n* **app_id**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_id` with every request.\n\n* **app_code**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_code` with every request.\n\n* **action**  `enum`\n \\- Type of request\n\n Valid values are : `cancel`, `run`, `status`\n\n* **mailto**  `text`\n \\- Email address where completion notification is sent.\n\n* **header**  `enum`\n \\- If `true`, a header row is included before the results in the output.  \n\n Valid values are : `false`, `true`\n\n* **indelim**  `text`\n \\- \n\n* **outdelim**  `text`\n \\- \n\n* **outcols**  `text`\n \\- \n\n* **outputCombined**  `enum`\n \\- \n\n Valid values are : `true`, `false`",
        "summary": "Batch Geocode Addresses",
        "operationId": "JobsPost2",
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "name": "gen",
            "in": "query",
            "required": true,
            "type": "integer",
            "format": "int32",
            "description": ""
          },
          {
            "name": "app_id",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "app_code",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "action",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "mailto",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "header",
            "in": "query",
            "required": true,
            "type": "boolean",
            "description": ""
          },
          {
            "name": "indelim",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "outdelim",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "outcols",
            "in": "query",
            "required": true,
            "type": "string",
            "description": ""
          },
          {
            "name": "outputCombined",
            "in": "query",
            "required": true,
            "type": "boolean",
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [],
        "x-unitTests": [
          {
            "request": {
              "method": "POST",
              "uri": "/jobs?gen=8&app_id={{YOUR_APP_ID}}&app_code={{YOUR_APP_CODE}}&action=run&mailto=<my_email>&header=true&indelim=|&outdelim=|&outcols=displayLatitude,displayLongitude,locationLabel,houseNumber,street,district,city,postalCode,county,state,country&outputCombined=false"
            },
            "expectedResponse": {
              "x-allowExtraHeaders": true,
              "x-bodyMatchMode": "NONE",
              "x-arrayOrderedMatching": false,
              "x-arrayCheckCount": false,
              "x-matchResponseSchema": true,
              "headers": {}
            },
            "x-testShouldPass": true,
            "x-testEnabled": true,
            "x-testName": "Batch Geocode Addresses",
            "x-testDescription": "* Start asynchronously geocoding a large set of addresses in one batch*\n\nSubmit an HTTP POST request with `action=run` and attach the input data to the body. \n  \n\n\n\n* **gen**  `number`\n \\- Enables/disables backward incompatible behavior in the API\n\n* **app_id**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_id` with every request.\n\n* **app_code**  `text`\n \\- A 20 byte Base64 URL-safe encoded string used for the authentication of the client application.    You must include an `app_code` with every request.\n\n* **action**  `enum`\n \\- Type of request\n\n Valid values are : `cancel`, `run`, `status`\n\n* **mailto**  `text`\n \\- Email address where completion notification is sent.\n\n* **header**  `enum`\n \\- If `true`, a header row is included before the results in the output.  \n\n Valid values are : `false`, `true`\n\n* **indelim**  `text`\n \\- \n\n* **outdelim**  `text`\n \\- \n\n* **outcols**  `text`\n \\- \n\n* **outputCombined**  `enum`\n \\- \n\n Valid values are : `true`, `false`"
          }
        ],
        "x-operation-settings": {
          "CollectParameters": false,
          "AllowDynamicQueryParameters": false,
          "AllowDynamicFormParameters": false,
          "IsMultiContentStreaming": false
        }
      }
    }
  }
}

以上是关于json 这里批量地理编码的主要内容,如果未能解决你的问题,请参考以下文章

如何在 PHP 中对谷歌地理编码 api 进行批量纬度/经度查找?

如何使用 PHP 对 MapQuest 地理编码器进行批量地理编码?

python 使用GeoPy批量地理编码脚本

如何实现地理位置与经纬度坐标的批量转换

android 怎么批量调用百度地图的地理编码功能

有没有办法进行批量地理编码(通过地址获取纬度/经度,反之亦然)? [关闭]