-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.yaml
More file actions
54 lines (54 loc) · 1.58 KB
/
Copy pathmap.yaml
File metadata and controls
54 lines (54 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
openapi: 3.0.0
info:
title: 腾讯位置服务静态地图 API
version: 1.0.0
description: 这是腾讯位置服务静态地图 API 的 OpenAPI 文档,包含了所有的 API 端点和参数。
servers:
- url: 'https://apis.map.qq.com/ws/staticmap/v2'
paths:
/:
get:
summary: 获取静态地图
description: 通过指定地图中心点坐标、缩放级别等参数,获取静态地图图片。
parameters:
- name: key
in: query
description: 开发者密钥,可在腾讯位置服务开发者平台申请。
required: true
schema:
type: string
- name: center
in: query
description: 地图中心点坐标,格式为'纬度,经度'。
required: true
schema:
type: string
- name: zoom
in: query
description: 地图缩放级别,范围1-18。
required: false
schema:
type: integer
minimum: 1
maximum: 18
- name: size
in: query
description: 地图图片大小,格式为'宽度x高度'。
required: false
schema:
type: string
- name: scale
in: query
description: 地图图片清晰度,取值为1或2。
required: false
schema:
type: integer
enum: [1, 2]
responses:
'200':
description: 静态地图图片
content:
image/png:
schema:
type: string
format: binary