mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-02-04 09:14:30 +00:00
CQ/ITU zone lookups
This commit is contained in:
@@ -653,6 +653,80 @@ paths:
|
||||
example: "Failed"
|
||||
|
||||
|
||||
|
||||
|
||||
/lookup/grid:
|
||||
get:
|
||||
tags:
|
||||
- Utilities
|
||||
summary: Look up grid details
|
||||
description: Perform a lookup of data about a Maidenhead grid square.
|
||||
operationId: grid
|
||||
parameters:
|
||||
- name: grid
|
||||
in: query
|
||||
description: Maidenhead grid, to any accuracy
|
||||
required: true
|
||||
type: string
|
||||
example: "AA00aa"
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
center:
|
||||
type: object
|
||||
properties:
|
||||
latitude:
|
||||
type: number
|
||||
description: Latitude of the centre of the grid reference.
|
||||
example: 0.0
|
||||
longitude:
|
||||
type: number
|
||||
description: Latitude of the centre of the grid reference.
|
||||
example: 0.0
|
||||
cq_zone:
|
||||
type: number
|
||||
description: CQ zone of the centre of the grid reference.
|
||||
example: 1
|
||||
itu_zone:
|
||||
type: number
|
||||
description: ITU zone of the centre of the grid reference.
|
||||
example: 1
|
||||
southwest:
|
||||
type: object
|
||||
properties:
|
||||
latitude:
|
||||
type: number
|
||||
description: Latitude of the south-west corner of the grid square.
|
||||
example: 0.0
|
||||
longitude:
|
||||
type: number
|
||||
description: Latitude of the south-west corner of the grid square.
|
||||
example: 0.0
|
||||
northeast:
|
||||
type: object
|
||||
properties:
|
||||
latitude:
|
||||
type: number
|
||||
description: Latitude of the north-east corner of the grid square.
|
||||
example: 0.0
|
||||
longitude:
|
||||
type: number
|
||||
description: Latitude of the north-east corner of the grid square.
|
||||
example: 0.0
|
||||
'422':
|
||||
description: Validation error e.g. reference format incorrect
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: string
|
||||
example: "Failed"
|
||||
|
||||
|
||||
/spot:
|
||||
post:
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user