Skip to content
OpenGeocodeOpenGeocodeOpenGeocodeDownloads

Get the server and Pack versions

GET/version

Returns the server’s version and what identifies the Pack it serves: a content id, the schema version, and which build made it and when. It names no path.

The server and the Pack.

application/json

The server build and the Pack it serves.

pack:object

Which Pack is served, and how it was built.

Properties

built_at_unix:integerformat: int64

When the Pack was built, in seconds since the Unix epoch.

built_by:string

Version of the open-geocode that built the Pack.

id:string

Identifies the Pack’s content: equal ids, same Pack.

schema_version:integerformat: int32

Version of the Pack file format.

version:string

Version of the open-geocode server.

Example

{
  "pack": {
    "built_at_unix": 1793074078,
    "built_by": "0.1.0",
    "id": "ebd8ae77aea58c01",
    "schema_version": 10
  },
  "version": "0.1.0"
}

X-Request-Id: optionalstring

ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

<= 128 characters

Method not allowed. The route accepts GET only.

application/problem+json

Problem

Error response, an RFC 9457 problem document.

detail: optionalstring

Human-readable explanation. Absent on 500 errors.

error_code:string

Stable error code. Branch on this.

Allowed values:invalid_queryinvalid_coordinatelimit_too_largemalformed_parametermalformed_bodynot_foundmethod_not_allowedtoo_many_itemsbody_too_largeunsupported_media_typeinternal_errorbusytimeoutpack_outdated

invalid_params: optionalArray<object>

Rejected parameters. Present only when the error is about parameters.

A rejected parameter.

Properties

name:string

Parameter name.

reason:string

Why it was rejected.

request_id: optionalstring

ID the request is logged under. Include it in bug reports.

status:integerformat: int32

>= 400<= 599

title:string

Name of the HTTP status. Do not branch on it.

type:string

URI identifying the problem type. Currently always about:blank.

Example

{
  "detail": "q must not be empty",
  "error_code": "invalid_query",
  "invalid_params": [
    {
      "name": "limit",
      "reason": "must be at most 50"
    }
  ],
  "request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
  "status": 400,
  "title": "Bad Request",
  "type": "about:blank"
}

Allow: optionalstring

The methods this route accepts.

Example
GET

X-Request-Id: optionalstring

ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

<= 128 characters