CQ/ITU zone lookups

This commit is contained in:
Ian Renton
2026-02-03 19:06:43 +00:00
parent 9241a26a47
commit 3cd1352ff3
9 changed files with 208694 additions and 9 deletions

View File

@@ -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: