{
  "openapi": "3.1.0",
  "info": {
    "title": "My Geocode API",
    "version": "1.0.0",
    "summary": "Geocoding, reverse geocoding, address autocomplete, IP, timezone, elevation and postal code lookups.",
    "description": "The native My Geocode API. A key is optional: without one, each network gets 2,500 free requests a day. Send a key as the X-API-Key header, a bearer token or key=. Results are JSON; errors use one envelope, {\"status\":\"error\",\"error\":{\"code\",\"message\",\"param\"}}. Every answer carries X-Request-Id and the X-Quota-* headers.\n\nDocumentation: https://www.mygeocode.com/docs/ . Official SDKs: https://www.mygeocode.com/sdks/ . Drop-in hosts that answer in the formats of Google, Bing, HERE, Mapbox, Nominatim, OpenCage and others: https://www.mygeocode.com/compatibility/ .",
    "termsOfService": "https://www.mygeocode.com/terms/",
    "contact": {
      "name": "My Geocode support",
      "url": "https://www.mygeocode.com/contact/",
      "email": "support@mygeocode.com"
    },
    "x-logo": {
      "url": "https://www.mygeocode.com/assets/img/logo-square-512.png",
      "altText": "My Geocode"
    }
  },
  "externalDocs": {
    "description": "Documentation",
    "url": "https://www.mygeocode.com/docs/"
  },
  "servers": [
    {
      "url": "https://api.mygeocode.com/v1",
      "description": "Production"
    }
  ],
  "security": [
    {},
    {
      "ApiKeyHeader": []
    },
    {
      "BearerAuth": []
    },
    {
      "ApiKeyQuery": []
    }
  ],
  "tags": [
    {
      "name": "Geocoding"
    },
    {
      "name": "IP"
    },
    {
      "name": "Timezone"
    },
    {
      "name": "Elevation"
    },
    {
      "name": "Postal codes"
    }
  ],
  "paths": {
    "/forward": {
      "get": {
        "operationId": "forward",
        "summary": "Forward geocoding",
        "description": "Address, place, postal code or plus code to coordinates. Docs: https://www.mygeocode.com/docs/forward-geocoding/",
        "tags": [
          "Geocoding"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/s_street"
          },
          {
            "$ref": "#/components/parameters/s_city"
          },
          {
            "$ref": "#/components/parameters/s_state"
          },
          {
            "$ref": "#/components/parameters/s_postcode"
          },
          {
            "$ref": "#/components/parameters/s_country"
          },
          {
            "$ref": "#/components/parameters/place_id"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/countries"
          },
          {
            "$ref": "#/components/parameters/bounds"
          },
          {
            "$ref": "#/components/parameters/strict"
          },
          {
            "$ref": "#/components/parameters/proximity"
          },
          {
            "$ref": "#/components/parameters/types"
          },
          {
            "$ref": "#/components/parameters/lang"
          },
          {
            "$ref": "#/components/parameters/f_timezone"
          },
          {
            "$ref": "#/components/parameters/f_elevation"
          },
          {
            "$ref": "#/components/parameters/f_wikidata"
          },
          {
            "$ref": "#/components/parameters/f_country_info"
          },
          {
            "$ref": "#/components/parameters/f_codes"
          },
          {
            "$ref": "#/components/parameters/f_sun"
          },
          {
            "$ref": "#/components/parameters/f_regions"
          },
          {
            "$ref": "#/components/parameters/f_districts"
          },
          {
            "$ref": "#/components/parameters/f_census"
          },
          {
            "$ref": "#/components/parameters/f_demographics"
          },
          {
            "$ref": "#/components/parameters/f_road"
          },
          {
            "$ref": "#/components/parameters/f_site"
          },
          {
            "$ref": "#/components/parameters/annotations"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "responses": {
          "200": {
            "description": "Matches, best first.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForwardResponse"
                },
                "examples": {
                  "forward": {
                    "summary": "forward",
                    "value": {
                      "status": "ok",
                      "query": "Brandenburg Gate, Berlin",
                      "results": [
                        {
                          "formatted": "Brandenburg Gate, State of Berlin, Germany",
                          "lat": 52.516268,
                          "lon": 13.377692,
                          "type": "poi",
                          "precision": "house",
                          "confidence": 0.84,
                          "place_id": "jT9DvSQ2gMXhXRQ",
                          "components": {
                            "poi": "Brandenburg Gate",
                            "country": "Germany",
                            "country_code": "de",
                            "state": "State of Berlin"
                          },
                          "bounds": {
                            "north": 52.518271,
                            "south": 52.514269,
                            "east": 13.379691,
                            "west": 13.375691
                          },
                          "codes": {
                            "plus_code": "9F4MG98H+G3",
                            "geohash": "u33db2m36vfj",
                            "mgrs": "33UUU8991719698",
                            "maidenhead": "JO62qm53",
                            "dms": {
                              "lat": "52° 30' 58.6\" N",
                              "lon": "13° 22' 39.7\" E"
                            },
                            "mapcode": "DEU 7J.LF",
                            "mapcode_international": "VJMM9.T0MV"
                          }
                        },
                        {
                          "formatted": "Berlin, State of Berlin, Germany",
                          "lat": 52.524371,
                          "lon": 13.410529,
                          "type": "city",
                          "precision": "city",
                          "confidence": 0.5,
                          "place_id": "fF86s6SM0qC7c-g",
                          "components": {
                            "city": "Berlin",
                            "country": "Germany",
                            "country_code": "de",
                            "state": "State of Berlin"
                          },
                          "bounds": {
                            "north": 52.774369,
                            "south": 52.274372,
                            "east": 13.660532,
                            "west": 13.160531
                          },
                          "population": 3426354
                        },
                        {
                          "formatted": "State of Berlin, Germany",
                          "lat": 52.499999,
                          "lon": 13.416669,
                          "type": "region",
                          "precision": "region",
                          "confidence": 0.39,
                          "place_id": "K-9qa7O1ZftvasU",
                          "components": {
                            "country": "Germany",
                            "country_code": "de",
                            "state": "State of Berlin"
                          },
                          "bounds": {
                            "north": 53.170941,
                            "south": 51.829061,
                            "east": 14.518812,
                            "west": 12.314532
                          },
                          "population": 3677472
                        },
                        {
                          "formatted": "Berlin, Schleswig-Holstein, Germany",
                          "lat": 54.403828,
                          "lon": 9.422432,
                          "type": "poi",
                          "precision": "house",
                          "confidence": 0.15,
                          "place_id": "Zv87gXPLuebpg9g",
                          "components": {
                            "poi": "Berlin",
                            "country": "Germany",
                            "country_code": "de",
                            "state": "Schleswig-Holstein"
                          },
                          "bounds": {
                            "north": 54.405832,
                            "south": 54.401828,
                            "east": 9.424428,
                            "west": 9.420429
                          },
                          "codes": {
                            "plus_code": "9F6FCC3C+GX",
                            "geohash": "u1wtqrvjq8de",
                            "mgrs": "32UNF2742128535",
                            "maidenhead": "JO44rj06",
                            "dms": {
                              "lat": "54° 24' 13.8\" N",
                              "lon": "9° 25' 20.8\" E"
                            },
                            "mapcode": "DEU MJCP.QX",
                            "mapcode_international": "WJ9DJ.QK2T"
                          }
                        },
                        {
                          "formatted": "Berlin, Regierungsbezirk Stuttgart, Baden-Wurttemberg, Germany",
                          "lat": 48.700321,
                          "lon": 9.016989,
                          "type": "poi",
                          "precision": "house",
                          "confidence": 0.14,
                          "place_id": "DF4JRPMvlulj_2E",
                          "components": {
                            "poi": "Berlin",
                            "country": "Germany",
                            "country_code": "de",
                            "county": "Regierungsbezirk Stuttgart",
                            "state": "Baden-Wurttemberg"
                          },
                          "bounds": {
                            "north": 48.702319,
                            "south": 48.698321,
                            "east": 9.018988,
                            "west": 9.014989
                          },
                          "codes": {
                            "plus_code": "8FWFP228+4Q",
                            "geohash": "u0wmj1tgzjf6",
                            "mgrs": "32UNU0125094142",
                            "maidenhead": "JN48mq28",
                            "dms": {
                              "lat": "48° 42' 1.2\" N",
                              "lon": "9° 1' 1.2\" E"
                            },
                            "mapcode": "DEU 92.1WZW",
                            "mapcode_international": "VJ93V.7XSQ"
                          }
                        }
                      ]
                    }
                  },
                  "forward_structured": {
                    "summary": "forward structured",
                    "value": {
                      "status": "ok",
                      "query": "10 Downing Street, London, GB",
                      "results": [
                        {
                          "formatted": "Downing Street, London SW1A, United Kingdom",
                          "lat": 51.503195,
                          "lon": -0.127033,
                          "type": "street",
                          "precision": "street",
                          "confidence": 0.68,
                          "place_id": "3qhSMqQhiQ1AZcJrQwfLrlKBQpZdCZs",
                          "components": {
                            "road": "Downing Street",
                            "postcode": "SW1A",
                            "city": "London",
                            "county": "Greater London",
                            "state": "England",
                            "country": "United Kingdom",
                            "country_code": "gb"
                          },
                          "bounds": {
                            "south": 51.503166,
                            "west": -0.127924,
                            "north": 51.503254,
                            "east": -0.126138
                          },
                          "codes": {
                            "plus_code": "9C3XGV3F+75",
                            "geohash": "gcpuvpg7zgmm",
                            "mgrs": "30UXC9938709698",
                            "maidenhead": "IO91wm40",
                            "dms": {
                              "lat": "51° 30' 11.5\" N",
                              "lon": "0° 7' 37.3\" W"
                            },
                            "mapcode": "GBR HH.MB",
                            "mapcode_international": "VHGQZ.RH60"
                          }
                        },
                        {
                          "formatted": "George Downing Estate, London N16, United Kingdom",
                          "lat": 51.563829,
                          "lon": -0.070786,
                          "type": "street",
                          "precision": "street",
                          "confidence": 0.62,
                          "place_id": "OUz8pJ_vlf3XjWPf2HU8EndIlvv0w0mwNQ",
                          "components": {
                            "road": "George Downing Estate",
                            "city": "London",
                            "state": "Greater London",
                            "postcode": "N16",
                            "country": "United Kingdom",
                            "country_code": "gb"
                          },
                          "bounds": {
                            "north": 51.566832,
                            "south": 51.560829,
                            "east": -0.067788,
                            "west": -0.073786
                          },
                          "codes": {
                            "plus_code": "9C3XHW7H+GM",
                            "geohash": "gcpvq6umnd6j",
                            "mgrs": "30UYC0302016594",
                            "maidenhead": "IO91xn15",
                            "dms": {
                              "lat": "51° 33' 49.8\" N",
                              "lon": "0° 4' 14.8\" W"
                            },
                            "mapcode": "GBR HC.4V2",
                            "mapcode_international": "VHGQM.QYFK"
                          }
                        },
                        {
                          "formatted": "London, England, United Kingdom",
                          "lat": 51.508528,
                          "lon": -0.125739,
                          "type": "city",
                          "precision": "city",
                          "confidence": 0.5,
                          "place_id": "LVssC4ZefC72r-k",
                          "components": {
                            "city": "London",
                            "country": "United Kingdom",
                            "country_code": "gb",
                            "county": "Greater London",
                            "state": "England",
                            "state_code": "ENG"
                          },
                          "bounds": {
                            "north": 51.758528,
                            "south": 51.258532,
                            "east": 0.124259,
                            "west": -0.375741
                          },
                          "population": 8961989
                        },
                        {
                          "formatted": "City of London, England, United Kingdom",
                          "lat": 51.512789,
                          "lon": -0.091838,
                          "type": "city",
                          "precision": "city",
                          "confidence": 0.26,
                          "place_id": "xx2zR-OVdD46vTw",
                          "components": {
                            "city": "City of London",
                            "country": "United Kingdom",
                            "country_code": "gb",
                            "county": "Greater London",
                            "state": "England",
                            "state_code": "ENG"
                          },
                          "bounds": {
                            "north": 51.542789,
                            "south": 51.482789,
                            "east": -0.061841,
                            "west": -0.121841
                          },
                          "population": 8072
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      },
      "post": {
        "operationId": "forwardBatch",
        "summary": "Forward geocoding, batch",
        "description": "Up to 100 queries in one request; options go in the query string and apply to every query.",
        "tags": [
          "Geocoding"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/countries"
          },
          {
            "$ref": "#/components/parameters/bounds"
          },
          {
            "$ref": "#/components/parameters/strict"
          },
          {
            "$ref": "#/components/parameters/proximity"
          },
          {
            "$ref": "#/components/parameters/types"
          },
          {
            "$ref": "#/components/parameters/lang"
          },
          {
            "$ref": "#/components/parameters/f_timezone"
          },
          {
            "$ref": "#/components/parameters/f_elevation"
          },
          {
            "$ref": "#/components/parameters/f_wikidata"
          },
          {
            "$ref": "#/components/parameters/f_country_info"
          },
          {
            "$ref": "#/components/parameters/f_codes"
          },
          {
            "$ref": "#/components/parameters/f_sun"
          },
          {
            "$ref": "#/components/parameters/f_regions"
          },
          {
            "$ref": "#/components/parameters/f_districts"
          },
          {
            "$ref": "#/components/parameters/f_census"
          },
          {
            "$ref": "#/components/parameters/f_demographics"
          },
          {
            "$ref": "#/components/parameters/f_road"
          },
          {
            "$ref": "#/components/parameters/f_site"
          },
          {
            "$ref": "#/components/parameters/annotations"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForwardBatchRequest"
              },
              "example": {
                "queries": [
                  "Brandenburg Gate, Berlin",
                  "Sydney Opera House",
                  "Statue of Liberty, New York"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One entry per query.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForwardBatchResponse"
                },
                "examples": {
                  "forward_batch": {
                    "summary": "forward batch",
                    "value": {
                      "status": "ok",
                      "results": [
                        {
                          "query": "Brandenburg Gate, Berlin",
                          "results": [
                            {
                              "formatted": "Brandenburg Gate, State of Berlin, Germany",
                              "lat": 52.516268,
                              "lon": 13.377692,
                              "type": "poi",
                              "precision": "house",
                              "confidence": 0.84,
                              "place_id": "jT9DvSQ2gMXhXRQ",
                              "components": {
                                "poi": "Brandenburg Gate",
                                "country": "Germany",
                                "country_code": "de",
                                "state": "State of Berlin"
                              },
                              "bounds": {
                                "north": 52.518271,
                                "south": 52.514269,
                                "east": 13.379691,
                                "west": 13.375691
                              },
                              "codes": {
                                "plus_code": "9F4MG98H+G3",
                                "geohash": "u33db2m36vfj",
                                "mgrs": "33UUU8991719698",
                                "maidenhead": "JO62qm53",
                                "dms": {
                                  "lat": "52° 30' 58.6\" N",
                                  "lon": "13° 22' 39.7\" E"
                                },
                                "mapcode": "DEU 7J.LF",
                                "mapcode_international": "VJMM9.T0MV"
                              }
                            },
                            {
                              "formatted": "Berlin, State of Berlin, Germany",
                              "lat": 52.524371,
                              "lon": 13.410529,
                              "type": "city",
                              "precision": "city",
                              "confidence": 0.5,
                              "place_id": "fF86s6SM0qC7c-g",
                              "components": {
                                "city": "Berlin",
                                "country": "Germany",
                                "country_code": "de",
                                "state": "State of Berlin"
                              },
                              "bounds": {
                                "north": 52.774369,
                                "south": 52.274372,
                                "east": 13.660532,
                                "west": 13.160531
                              },
                              "population": 3426354
                            },
                            {
                              "formatted": "State of Berlin, Germany",
                              "lat": 52.499999,
                              "lon": 13.416669,
                              "type": "region",
                              "precision": "region",
                              "confidence": 0.39,
                              "place_id": "K-9qa7O1ZftvasU",
                              "components": {
                                "country": "Germany",
                                "country_code": "de",
                                "state": "State of Berlin"
                              },
                              "bounds": {
                                "north": 53.170941,
                                "south": 51.829061,
                                "east": 14.518812,
                                "west": 12.314532
                              },
                              "population": 3677472
                            },
                            {
                              "formatted": "Berlin, Schleswig-Holstein, Germany",
                              "lat": 54.403828,
                              "lon": 9.422432,
                              "type": "poi",
                              "precision": "house",
                              "confidence": 0.15,
                              "place_id": "Zv87gXPLuebpg9g",
                              "components": {
                                "poi": "Berlin",
                                "country": "Germany",
                                "country_code": "de",
                                "state": "Schleswig-Holstein"
                              },
                              "bounds": {
                                "north": 54.405832,
                                "south": 54.401828,
                                "east": 9.424428,
                                "west": 9.420429
                              },
                              "codes": {
                                "plus_code": "9F6FCC3C+GX",
                                "geohash": "u1wtqrvjq8de",
                                "mgrs": "32UNF2742128535",
                                "maidenhead": "JO44rj06",
                                "dms": {
                                  "lat": "54° 24' 13.8\" N",
                                  "lon": "9° 25' 20.8\" E"
                                },
                                "mapcode": "DEU MJCP.QX",
                                "mapcode_international": "WJ9DJ.QK2T"
                              }
                            },
                            {
                              "formatted": "Berlin, Regierungsbezirk Stuttgart, Baden-Wurttemberg, Germany",
                              "lat": 48.700321,
                              "lon": 9.016989,
                              "type": "poi",
                              "precision": "house",
                              "confidence": 0.14,
                              "place_id": "DF4JRPMvlulj_2E",
                              "components": {
                                "poi": "Berlin",
                                "country": "Germany",
                                "country_code": "de",
                                "county": "Regierungsbezirk Stuttgart",
                                "state": "Baden-Wurttemberg"
                              },
                              "bounds": {
                                "north": 48.702319,
                                "south": 48.698321,
                                "east": 9.018988,
                                "west": 9.014989
                              },
                              "codes": {
                                "plus_code": "8FWFP228+4Q",
                                "geohash": "u0wmj1tgzjf6",
                                "mgrs": "32UNU0125094142",
                                "maidenhead": "JN48mq28",
                                "dms": {
                                  "lat": "48° 42' 1.2\" N",
                                  "lon": "9° 1' 1.2\" E"
                                },
                                "mapcode": "DEU 92.1WZW",
                                "mapcode_international": "VJ93V.7XSQ"
                              }
                            }
                          ]
                        },
                        {
                          "query": "Sydney Opera House",
                          "results": [
                            {
                              "formatted": "Sydney Opera House, Sydney, New South Wales, Australia",
                              "lat": -33.856701,
                              "lon": 151.215018,
                              "type": "poi",
                              "precision": "house",
                              "confidence": 0.72,
                              "place_id": "xv84Nh5zyMTfpfU",
                              "components": {
                                "poi": "Sydney Opera House",
                                "country": "Australia",
                                "country_code": "au",
                                "county": "Sydney",
                                "state": "New South Wales"
                              },
                              "bounds": {
                                "north": -33.854699,
                                "south": -33.858698,
                                "east": 151.217019,
                                "west": 151.213019
                              },
                              "codes": {
                                "plus_code": "4RRH46V8+82",
                                "geohash": "r3gx2ux6mm3z",
                                "mgrs": "56HLH3487452299",
                                "maidenhead": "QF56od54",
                                "dms": {
                                  "lat": "33° 51' 24.1\" S",
                                  "lon": "151° 12' 54.1\" E"
                                },
                                "mapcode": "AU-NSW JB.ZQ",
                                "mapcode_international": "7XHRC.GZTH"
                              }
                            }
                          ]
                        },
                        {
                          "query": "Statue of Liberty, New York",
                          "results": [
                            {
                              "formatted": "Statue of Liberty, New York, New York, United States",
                              "lat": 40.689278,
                              "lon": -74.044552,
                              "type": "poi",
                              "precision": "house",
                              "confidence": 0.9,
                              "place_id": "TbZ3qf0L2-S3puo",
                              "components": {
                                "poi": "Statue of Liberty",
                                "country": "United States",
                                "country_code": "us",
                                "county": "New York",
                                "state": "New York",
                                "state_code": "NY"
                              },
                              "bounds": {
                                "north": 40.691282,
                                "south": 40.687281,
                                "east": -74.042549,
                                "west": -74.046549
                              },
                              "codes": {
                                "plus_code": "87G7MXQ4+P5",
                                "geohash": "dr5r7p62hzhm",
                                "mgrs": "18TWL8073104703",
                                "maidenhead": "FN20xq45",
                                "dms": {
                                  "lat": "40° 41' 21.4\" N",
                                  "lon": "74° 2' 40.4\" W"
                                },
                                "mapcode": "US-NJ V6.5P",
                                "mapcode_international": "S93J5.2972"
                              }
                            },
                            {
                              "formatted": "New York, New York, United States",
                              "lat": 40.714269,
                              "lon": -74.005971,
                              "type": "city",
                              "precision": "city",
                              "confidence": 0.5,
                              "place_id": "skZyM62Pru1sogw",
                              "components": {
                                "city": "New York",
                                "country": "United States",
                                "country_code": "us",
                                "state": "New York",
                                "state_code": "NY"
                              },
                              "bounds": {
                                "north": 40.964269,
                                "south": 40.464271,
                                "east": -73.755968,
                                "west": -74.255968
                              },
                              "population": 8804190
                            },
                            {
                              "formatted": "New York, United States",
                              "lat": 43.000349,
                              "lon": -75.499898,
                              "type": "region",
                              "precision": "region",
                              "confidence": 0.29,
                              "place_id": "D3lLI1MKIn2YaWg",
                              "components": {
                                "country": "United States",
                                "country_code": "us",
                                "state": "New York",
                                "state_code": "NY"
                              },
                              "bounds": {
                                "north": 44.952012,
                                "south": 41.048688,
                                "east": -72.831324,
                                "west": -78.168477
                              },
                              "population": 19867248
                            },
                            {
                              "formatted": "York, NE 68467, United States",
                              "lat": 40.868069,
                              "lon": -97.591999,
                              "type": "city",
                              "precision": "city",
                              "confidence": 0.24,
                              "place_id": "M6h56bcUEAwgtWk",
                              "components": {
                                "city": "York",
                                "country": "United States",
                                "country_code": "us",
                                "county": "York County",
                                "state": "Nebraska",
                                "state_code": "NE",
                                "postcode": 68467
                              },
                              "bounds": {
                                "north": 40.898068,
                                "south": 40.838071,
                                "east": -97.561998,
                                "west": -97.622001
                              },
                              "population": 7864
                            },
                            {
                              "formatted": "Clinton, Wisconsin, United States",
                              "lat": 42.557788,
                              "lon": -88.865111,
                              "type": "city",
                              "precision": "city",
                              "confidence": 0.22,
                              "place_id": "hiT7ppJO8SnjmP8",
                              "components": {
                                "city": "Clinton",
                                "country": "United States",
                                "country_code": "us",
                                "county": "Rock County",
                                "state": "Wisconsin",
                                "state_code": "WI"
                              },
                              "bounds": {
                                "north": 42.587788,
                                "south": 42.527788,
                                "east": -88.835108,
                                "west": -88.895109
                              },
                              "population": 2140
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      }
    },
    "/reverse": {
      "get": {
        "operationId": "reverse",
        "summary": "Reverse geocoding",
        "description": "Coordinates to the nearest address, street, postal code, city, region or country. Docs: https://www.mygeocode.com/docs/reverse-geocoding/",
        "tags": [
          "Geocoding"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/lat"
          },
          {
            "$ref": "#/components/parameters/lon"
          },
          {
            "$ref": "#/components/parameters/level"
          },
          {
            "$ref": "#/components/parameters/radius"
          },
          {
            "$ref": "#/components/parameters/lang"
          },
          {
            "$ref": "#/components/parameters/boundaries"
          },
          {
            "$ref": "#/components/parameters/f_timezone"
          },
          {
            "$ref": "#/components/parameters/f_elevation"
          },
          {
            "$ref": "#/components/parameters/f_wikidata"
          },
          {
            "$ref": "#/components/parameters/f_country_info"
          },
          {
            "$ref": "#/components/parameters/f_codes"
          },
          {
            "$ref": "#/components/parameters/f_sun"
          },
          {
            "$ref": "#/components/parameters/f_regions"
          },
          {
            "$ref": "#/components/parameters/f_districts"
          },
          {
            "$ref": "#/components/parameters/f_census"
          },
          {
            "$ref": "#/components/parameters/f_demographics"
          },
          {
            "$ref": "#/components/parameters/f_road"
          },
          {
            "$ref": "#/components/parameters/f_site"
          },
          {
            "$ref": "#/components/parameters/annotations"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "responses": {
          "200": {
            "description": "The nearest feature, or result null.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReverseResponse"
                },
                "examples": {
                  "reverse": {
                    "summary": "reverse",
                    "value": {
                      "status": "ok",
                      "lat": 48.8584,
                      "lon": 2.2945,
                      "result": {
                        "formatted": "5 Avenue Anatole France, 75007 Paris, France",
                        "lat": 48.858821,
                        "lon": 2.294596,
                        "distance_m": 47,
                        "type": "address",
                        "precision": "house",
                        "confidence": 0.85,
                        "place_id": "uaOpXczzaHCkNCaNUcKLUz6vyUB3_IjkyQ",
                        "components": {
                          "house_number": "5",
                          "road": "Avenue Anatole France",
                          "suburb": "7e arrondissement",
                          "city": "Paris",
                          "postcode": "75007",
                          "country": "France",
                          "country_code": "fr"
                        },
                        "bounds": {
                          "north": 48.859321,
                          "south": 48.858318,
                          "east": 2.295098,
                          "west": 2.294096
                        },
                        "place": {
                          "name": "Buste de Gustave Eiffel par Antoine Bourdelle",
                          "place_id": "J1Av7Pxoh0F86B3TcnEfggah1pcrcQ"
                        },
                        "formatted_place": "Buste de Gustave Eiffel par Antoine Bourdelle, 5 Avenue Anatole France, 75007 Paris, France",
                        "codes": {
                          "plus_code": "8FW4V75V+GR",
                          "geohash": "u09tunqz7bqg",
                          "mgrs": "31UDQ4825912001",
                          "maidenhead": "JN18du56",
                          "dms": {
                            "lat": "48° 51' 31.8\" N",
                            "lon": "2° 17' 40.5\" E"
                          },
                          "mapcode": "FRA 4H.QX",
                          "mapcode_international": "VHPM8.QYF6"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      },
      "post": {
        "operationId": "reverseBatch",
        "summary": "Reverse geocoding, batch",
        "description": "Up to 100 points in one request; options go in the query string and apply to every point.",
        "tags": [
          "Geocoding"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/level"
          },
          {
            "$ref": "#/components/parameters/radius"
          },
          {
            "$ref": "#/components/parameters/lang"
          },
          {
            "$ref": "#/components/parameters/boundaries"
          },
          {
            "$ref": "#/components/parameters/f_timezone"
          },
          {
            "$ref": "#/components/parameters/f_elevation"
          },
          {
            "$ref": "#/components/parameters/f_wikidata"
          },
          {
            "$ref": "#/components/parameters/f_country_info"
          },
          {
            "$ref": "#/components/parameters/f_codes"
          },
          {
            "$ref": "#/components/parameters/f_sun"
          },
          {
            "$ref": "#/components/parameters/f_regions"
          },
          {
            "$ref": "#/components/parameters/f_districts"
          },
          {
            "$ref": "#/components/parameters/f_census"
          },
          {
            "$ref": "#/components/parameters/f_demographics"
          },
          {
            "$ref": "#/components/parameters/f_road"
          },
          {
            "$ref": "#/components/parameters/f_site"
          },
          {
            "$ref": "#/components/parameters/annotations"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReverseBatchRequest"
              },
              "example": {
                "coords": [
                  [
                    48.8584,
                    2.2945
                  ],
                  [
                    40.6892,
                    -74.0445
                  ],
                  [
                    -33.8568,
                    151.2153
                  ]
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One entry per point.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReverseBatchResponse"
                },
                "examples": {
                  "reverse_batch": {
                    "summary": "reverse batch",
                    "value": {
                      "status": "ok",
                      "results": [
                        {
                          "lat": 48.8584,
                          "lon": 2.2945,
                          "result": {
                            "formatted": "5 Avenue Anatole France, 75007 Paris, France",
                            "lat": 48.858821,
                            "lon": 2.294596,
                            "distance_m": 47,
                            "type": "address",
                            "precision": "house",
                            "confidence": 0.85,
                            "place_id": "uaOpXczzaHCkNCaNUcKLUz6vyUB3_IjkyQ",
                            "components": {
                              "house_number": "5",
                              "road": "Avenue Anatole France",
                              "suburb": "7e arrondissement",
                              "city": "Paris",
                              "postcode": "75007",
                              "country": "France",
                              "country_code": "fr"
                            },
                            "bounds": {
                              "north": 48.859321,
                              "south": 48.858318,
                              "east": 2.295098,
                              "west": 2.294096
                            },
                            "place": {
                              "name": "Buste de Gustave Eiffel par Antoine Bourdelle",
                              "place_id": "J1Av7Pxoh0F86B3TcnEfggah1pcrcQ"
                            },
                            "formatted_place": "Buste de Gustave Eiffel par Antoine Bourdelle, 5 Avenue Anatole France, 75007 Paris, France",
                            "codes": {
                              "plus_code": "8FW4V75V+GR",
                              "geohash": "u09tunqz7bqg",
                              "mgrs": "31UDQ4825912001",
                              "maidenhead": "JN18du56",
                              "dms": {
                                "lat": "48° 51' 31.8\" N",
                                "lon": "2° 17' 40.5\" E"
                              },
                              "mapcode": "FRA 4H.QX",
                              "mapcode_international": "VHPM8.QYF6"
                            }
                          }
                        },
                        {
                          "lat": 40.6892,
                          "lon": -74.0445,
                          "result": {
                            "formatted": "1 Liberty Island, New York, NY 10004, United States",
                            "lat": 40.689921,
                            "lon": -74.045377,
                            "distance_m": 109,
                            "type": "address",
                            "precision": "house",
                            "confidence": 0.95,
                            "place_id": "F7sfgQm11gtVJP4ourYEl_xajGORku63TGoMC743beYl8yUx68MKXEl-XEizDniZQ_Vd",
                            "components": {
                              "house_number": "1",
                              "road": "Liberty Island",
                              "city": "New York",
                              "county": "New York County",
                              "state": "New York",
                              "state_code": "NY",
                              "postcode": "10004",
                              "country": "United States",
                              "country_code": "us"
                            },
                            "bounds": {
                              "north": 40.690421,
                              "south": 40.689421,
                              "east": -74.044877,
                              "west": -74.045877
                            },
                            "parcel": {
                              "id": "6201001000010101",
                              "area_m2": 46670,
                              "bounds": {
                                "south": 40.688755,
                                "west": -74.047614,
                                "north": 40.691041,
                                "east": -74.042576
                              }
                            },
                            "place": {
                              "name": "Statue Cruises Liberty Island Terminal",
                              "category": "pier",
                              "website": "http://www.statuecruises.com",
                              "place_id": "CO37Uvq9ziBppkFT90uWTBxJAjrWcuM"
                            },
                            "formatted_place": "Statue Cruises Liberty Island Terminal, 1 Liberty Island, New York, NY 10004, United States",
                            "codes": {
                              "plus_code": "87G7MXQ3+XR",
                              "geohash": "dr5r7p3gcxj1",
                              "mgrs": "18TWL8066004774",
                              "maidenhead": "FN20xq45",
                              "dms": {
                                "lat": "40° 41' 23.7\" N",
                                "lon": "74° 2' 43.4\" W"
                              },
                              "mapcode": "US-NJ V2.DK",
                              "mapcode_international": "S93J5.18QL"
                            }
                          }
                        },
                        {
                          "lat": -33.8568,
                          "lon": 151.2153,
                          "result": {
                            "formatted": "2B Macquarie Street, Sydney NSW 2000, Australia",
                            "lat": -33.858553,
                            "lon": 151.214267,
                            "distance_m": 217,
                            "type": "address",
                            "precision": "house",
                            "confidence": 0.7,
                            "place_id": "x832jqPQQqUuvzhz7JMp-t1sGABP3c3MvGia8rc",
                            "components": {
                              "house_number": "2B",
                              "road": "Macquarie Street",
                              "city": "Sydney",
                              "county": "Council of the City of Sydney",
                              "state": "New South Wales",
                              "state_code": "NSW",
                              "postcode": "2000",
                              "country": "Australia",
                              "country_code": "au"
                            },
                            "bounds": {
                              "north": -33.858053,
                              "south": -33.859053,
                              "east": 151.214765,
                              "west": 151.213767
                            },
                            "codes": {
                              "plus_code": "4RRH46R7+HP",
                              "geohash": "r3gx2unzeu3b",
                              "mgrs": "56HLH3480852092",
                              "maidenhead": "QF56od53",
                              "dms": {
                                "lat": "33° 51' 30.8\" S",
                                "lon": "151° 12' 51.4\" E"
                              },
                              "mapcode": "AU-NSW JC.SD",
                              "mapcode_international": "7XHRK.G1BC"
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      }
    },
    "/autocomplete": {
      "get": {
        "operationId": "autocomplete",
        "summary": "Address autocomplete",
        "description": "Suggestions for partial input, for search boxes. Docs: https://www.mygeocode.com/docs/address-autocomplete/",
        "tags": [
          "Geocoding"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/acq"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/countries"
          },
          {
            "$ref": "#/components/parameters/proximity"
          },
          {
            "$ref": "#/components/parameters/bounds"
          },
          {
            "$ref": "#/components/parameters/strict"
          },
          {
            "$ref": "#/components/parameters/types"
          },
          {
            "$ref": "#/components/parameters/lang"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "responses": {
          "200": {
            "description": "Suggestions, best first.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutocompleteResponse"
                },
                "examples": {
                  "autocomplete": {
                    "summary": "autocomplete",
                    "value": {
                      "status": "ok",
                      "query": "1600 Pennsylvania",
                      "suggestions": [
                        {
                          "text": "1600 Pennsylvania Avenue NW, Washington, DC 20500, United States",
                          "lat": 38.897674,
                          "lon": -77.036549,
                          "type": "address",
                          "precision": "house",
                          "place_id": "M8XGDEgf6kEg9ibC7WpG-Eecw6G89wuYa_WANLhDcMY_0KI9xyt-CudJSLQjHiqjYOgw"
                        },
                        {
                          "text": "1600 Pennsylvania Avenue SE, Washington, DC 20003, United States",
                          "lat": 38.879221,
                          "lon": -76.981979,
                          "type": "address",
                          "precision": "house",
                          "place_id": "kOUUY-yGdoreOTBBbeqKmWIM-UDwnIbhrGsRKLjLJiOzil_7BuBFtI5kTVFhKcYsqAbr"
                        },
                        {
                          "text": "1600 N Pennsylvania St, Denver, CO 80203, United States",
                          "lat": 39.741846,
                          "lon": -104.980944,
                          "type": "address",
                          "precision": "house",
                          "place_id": "oZt6U4vWKx2lqKPsunZaqljdQyMav_JjvVki5P2lt-ibU_VCJw9uoGBACg61yjD3QqT6"
                        },
                        {
                          "text": "1600 S Pennsylvania St, Denver, CO 80210, United States",
                          "lat": 39.687452,
                          "lon": -104.981286,
                          "type": "address",
                          "precision": "house",
                          "place_id": "Dm1c0mql2SZLRbzspSfmRbMEfZ-6AfbvpWoud8oBrO1GGZ_cJm1Mc0gdZne9D5V-Cz8I"
                        },
                        {
                          "text": "1600 N Pennsylvania Ave, Oklahoma City, OK 73107, United States",
                          "lat": 35.484773,
                          "lon": -97.547358,
                          "type": "address",
                          "precision": "house",
                          "place_id": "TF59Z6W2sirzGTYGtVi_We1zYHxiCd_cgf0DDhk"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      }
    },
    "/ip": {
      "get": {
        "operationId": "ip",
        "summary": "IP lookup (IPv4 or IPv6)",
        "description": "Location, network owner and risk flags for an IPv4 or IPv6 address, or up to 100 with ips. Docs: https://www.mygeocode.com/docs/ipv4-lookup/",
        "tags": [
          "IP"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ip"
          },
          {
            "$ref": "#/components/parameters/ips"
          },
          {
            "$ref": "#/components/parameters/ip_elev"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "responses": {
          "200": {
            "description": "The lookup, or with ips a batch.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/IpInfo"
                    },
                    {
                      "$ref": "#/components/schemas/IpBatchResponse"
                    }
                  ]
                },
                "examples": {
                  "ip": {
                    "summary": "ip",
                    "value": {
                      "status": "ok",
                      "ip": "8.8.8.8",
                      "version": 4,
                      "found": true,
                      "prefix": "8.8.8.0/24",
                      "country": "United States",
                      "country_code": "US",
                      "continent": "North America",
                      "continent_code": "NA",
                      "region": "California",
                      "region_code": "CA",
                      "city": "Mountain View",
                      "postcode": "94043",
                      "lat": 37.386051,
                      "lon": -122.083849,
                      "timezone": "America/Los_Angeles",
                      "utc_offset": "-08:00",
                      "utc_offset_seconds": -28800,
                      "is_eu": false,
                      "asn": 15169,
                      "as_name": "Google LLC",
                      "org": "Google LLC",
                      "usage_type": "Content",
                      "registry": "arin",
                      "allocated": "2000-03-30",
                      "tags": [
                        "a10k",
                        "anycast",
                        "cdn",
                        "icrit",
                        "vpn",
                        "vpsh"
                      ],
                      "is_anycast": true,
                      "is_satellite": false,
                      "is_datacenter": true,
                      "is_proxy": false,
                      "is_vpn_provider": true,
                      "is_tor": false,
                      "crawler": null,
                      "is_private": false,
                      "abuse_email": "network-abuse@google.com",
                      "threat": {
                        "listed": false,
                        "score": 0,
                        "source_count": 0,
                        "categories": [],
                        "is_tor": false,
                        "is_tor_exit": false,
                        "is_bogon": false,
                        "listings": []
                      },
                      "updated_at": "2026-09-18 05:52:52"
                    }
                  },
                  "ip_batch": {
                    "summary": "ip batch",
                    "value": {
                      "status": "ok",
                      "results": [
                        {
                          "status": "ok",
                          "ip": "8.8.8.8",
                          "version": 4,
                          "found": true,
                          "prefix": "8.8.8.0/24",
                          "country": "United States",
                          "country_code": "US",
                          "continent": "North America",
                          "continent_code": "NA",
                          "region": "California",
                          "region_code": "CA",
                          "city": "Mountain View",
                          "postcode": "94043",
                          "lat": 37.386051,
                          "lon": -122.083849,
                          "timezone": "America/Los_Angeles",
                          "utc_offset": "-08:00",
                          "utc_offset_seconds": -28800,
                          "is_eu": false,
                          "asn": 15169,
                          "as_name": "Google LLC",
                          "org": "Google LLC",
                          "usage_type": "Content",
                          "registry": "arin",
                          "allocated": "2000-03-30",
                          "tags": [
                            "a10k",
                            "anycast",
                            "cdn",
                            "icrit",
                            "vpn",
                            "vpsh"
                          ],
                          "is_anycast": true,
                          "is_satellite": false,
                          "is_datacenter": true,
                          "is_proxy": false,
                          "is_vpn_provider": true,
                          "is_tor": false,
                          "crawler": null,
                          "is_private": false,
                          "abuse_email": "network-abuse@google.com",
                          "threat": {
                            "listed": false,
                            "score": 0,
                            "source_count": 0,
                            "categories": [],
                            "is_tor": false,
                            "is_tor_exit": false,
                            "is_bogon": false,
                            "listings": []
                          },
                          "updated_at": "2026-09-18 05:52:52"
                        },
                        {
                          "status": "ok",
                          "ip": "2606:4700:4700::1111",
                          "version": 6,
                          "found": true,
                          "prefix": "2606:4700:4700::/48",
                          "country": "United States",
                          "country_code": "US",
                          "continent": "North America",
                          "continent_code": "NA",
                          "region": "California",
                          "region_code": "CA",
                          "city": "San Francisco",
                          "postcode": "94199",
                          "lat": 37.774931,
                          "lon": -122.419421,
                          "timezone": "America/Los_Angeles",
                          "utc_offset": "-08:00",
                          "utc_offset_seconds": -28800,
                          "is_eu": false,
                          "asn": 13335,
                          "as_name": "Cloudflare, Inc.",
                          "org": "Cloudflare, Inc.",
                          "usage_type": "Content",
                          "registry": "arin",
                          "allocated": "2010-07-14",
                          "tags": [
                            "a10k",
                            "anycast",
                            "cdn",
                            "ddosm",
                            "icrit",
                            "rpkirov",
                            "vpn"
                          ],
                          "is_anycast": true,
                          "is_satellite": false,
                          "is_datacenter": true,
                          "is_proxy": false,
                          "is_vpn_provider": true,
                          "is_tor": false,
                          "crawler": null,
                          "is_private": false,
                          "abuse_email": "abuse@cloudflare.com",
                          "threat": {
                            "listed": false,
                            "score": 0,
                            "source_count": 0,
                            "categories": [],
                            "is_tor": false,
                            "is_tor_exit": false,
                            "is_bogon": false,
                            "listings": []
                          },
                          "updated_at": "2026-09-18 08:28:11"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      }
    },
    "/ipv4": {
      "get": {
        "operationId": "ipv4",
        "summary": "IPv4 lookup",
        "description": "As /ip, IPv4 only. Docs: https://www.mygeocode.com/docs/ipv4-lookup/",
        "tags": [
          "IP"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ip"
          },
          {
            "$ref": "#/components/parameters/ips"
          },
          {
            "$ref": "#/components/parameters/ip_elev"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "responses": {
          "200": {
            "description": "The lookup, or with ips a batch.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/IpInfo"
                    },
                    {
                      "$ref": "#/components/schemas/IpBatchResponse"
                    }
                  ]
                },
                "examples": {
                  "ipv4": {
                    "summary": "ipv4",
                    "value": {
                      "status": "ok",
                      "ip": "8.8.8.8",
                      "version": 4,
                      "found": true,
                      "prefix": "8.8.8.0/24",
                      "country": "United States",
                      "country_code": "US",
                      "continent": "North America",
                      "continent_code": "NA",
                      "region": "California",
                      "region_code": "CA",
                      "city": "Mountain View",
                      "postcode": "94043",
                      "lat": 37.386051,
                      "lon": -122.083849,
                      "timezone": "America/Los_Angeles",
                      "utc_offset": "-08:00",
                      "utc_offset_seconds": -28800,
                      "is_eu": false,
                      "asn": 15169,
                      "as_name": "Google LLC",
                      "org": "Google LLC",
                      "usage_type": "Content",
                      "registry": "arin",
                      "allocated": "2000-03-30",
                      "tags": [
                        "a10k",
                        "anycast",
                        "cdn",
                        "icrit",
                        "vpn",
                        "vpsh"
                      ],
                      "is_anycast": true,
                      "is_satellite": false,
                      "is_datacenter": true,
                      "is_proxy": false,
                      "is_vpn_provider": true,
                      "is_tor": false,
                      "crawler": null,
                      "is_private": false,
                      "abuse_email": "network-abuse@google.com",
                      "threat": {
                        "listed": false,
                        "score": 0,
                        "source_count": 0,
                        "categories": [],
                        "is_tor": false,
                        "is_tor_exit": false,
                        "is_bogon": false,
                        "listings": []
                      },
                      "updated_at": "2026-09-18 05:52:52"
                    }
                  },
                  "ipv4_batch": {
                    "summary": "ipv4 batch",
                    "value": {
                      "status": "ok",
                      "results": [
                        {
                          "status": "ok",
                          "ip": "8.8.8.8",
                          "version": 4,
                          "found": true,
                          "prefix": "8.8.8.0/24",
                          "country": "United States",
                          "country_code": "US",
                          "continent": "North America",
                          "continent_code": "NA",
                          "region": "California",
                          "region_code": "CA",
                          "city": "Mountain View",
                          "postcode": "94043",
                          "lat": 37.386051,
                          "lon": -122.083849,
                          "timezone": "America/Los_Angeles",
                          "utc_offset": "-08:00",
                          "utc_offset_seconds": -28800,
                          "is_eu": false,
                          "asn": 15169,
                          "as_name": "Google LLC",
                          "org": "Google LLC",
                          "usage_type": "Content",
                          "registry": "arin",
                          "allocated": "2000-03-30",
                          "tags": [
                            "a10k",
                            "anycast",
                            "cdn",
                            "icrit",
                            "vpn",
                            "vpsh"
                          ],
                          "is_anycast": true,
                          "is_satellite": false,
                          "is_datacenter": true,
                          "is_proxy": false,
                          "is_vpn_provider": true,
                          "is_tor": false,
                          "crawler": null,
                          "is_private": false,
                          "abuse_email": "network-abuse@google.com",
                          "threat": {
                            "listed": false,
                            "score": 0,
                            "source_count": 0,
                            "categories": [],
                            "is_tor": false,
                            "is_tor_exit": false,
                            "is_bogon": false,
                            "listings": []
                          },
                          "updated_at": "2026-09-18 05:52:52"
                        },
                        {
                          "status": "ok",
                          "ip": "1.1.1.1",
                          "version": 4,
                          "found": true,
                          "prefix": "1.1.1.0/24",
                          "country": "Australia",
                          "country_code": "AU",
                          "continent": "Oceania",
                          "continent_code": "OC",
                          "region": "Queensland",
                          "region_code": "QLD",
                          "city": "Brisbane",
                          "postcode": "4000",
                          "lat": -27.467542,
                          "lon": 153.028089,
                          "timezone": "Australia/Brisbane",
                          "utc_offset": "+10:00",
                          "utc_offset_seconds": 36000,
                          "is_eu": false,
                          "asn": 13335,
                          "as_name": "Cloudflare, Inc.",
                          "org": "Cloudflare, Inc.",
                          "usage_type": "Content",
                          "registry": "arin",
                          "allocated": "2010-07-14",
                          "tags": [
                            "a10k",
                            "anycast",
                            "cdn",
                            "ddosm",
                            "icrit",
                            "rpkirov",
                            "vpn"
                          ],
                          "is_anycast": true,
                          "is_satellite": false,
                          "is_datacenter": true,
                          "is_proxy": false,
                          "is_vpn_provider": true,
                          "is_tor": false,
                          "crawler": null,
                          "is_private": false,
                          "abuse_email": "abuse@cloudflare.com",
                          "threat": {
                            "listed": false,
                            "score": 0,
                            "source_count": 0,
                            "categories": [],
                            "is_tor": false,
                            "is_tor_exit": false,
                            "is_bogon": false,
                            "listings": []
                          },
                          "updated_at": "2026-09-18 05:52:52"
                        },
                        {
                          "status": "ok",
                          "ip": "9.9.9.9",
                          "version": 4,
                          "found": true,
                          "prefix": "9.9.9.0/24",
                          "country": "United States of America",
                          "country_code": "US",
                          "continent": "North America",
                          "continent_code": "NA",
                          "region": "California",
                          "region_code": "CA",
                          "city": "Berkeley",
                          "postcode": "94709",
                          "lat": 37.871591,
                          "lon": -122.272751,
                          "timezone": "America/Los_Angeles",
                          "utc_offset": "-08:00",
                          "utc_offset_seconds": -28800,
                          "is_eu": false,
                          "asn": 19281,
                          "as_name": "Quad9",
                          "org": "Quad9",
                          "usage_type": "Content",
                          "registry": "arin",
                          "allocated": "2017-09-13",
                          "tags": [
                            "anycast",
                            "cdn"
                          ],
                          "is_anycast": true,
                          "is_satellite": false,
                          "is_datacenter": true,
                          "is_proxy": false,
                          "is_vpn_provider": false,
                          "is_tor": false,
                          "crawler": null,
                          "is_private": false,
                          "abuse_email": "abuse@quad9.net",
                          "threat": {
                            "listed": false,
                            "score": 0,
                            "source_count": 0,
                            "categories": [],
                            "is_tor": false,
                            "is_tor_exit": false,
                            "is_bogon": false,
                            "listings": []
                          },
                          "updated_at": "2026-09-18 05:53:22"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      }
    },
    "/ipv6": {
      "get": {
        "operationId": "ipv6",
        "summary": "IPv6 lookup",
        "description": "As /ip, IPv6 only. Docs: https://www.mygeocode.com/docs/ipv6-lookup/",
        "tags": [
          "IP"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ip"
          },
          {
            "$ref": "#/components/parameters/ips"
          },
          {
            "$ref": "#/components/parameters/ip_elev"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "responses": {
          "200": {
            "description": "The lookup, or with ips a batch.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/IpInfo"
                    },
                    {
                      "$ref": "#/components/schemas/IpBatchResponse"
                    }
                  ]
                },
                "examples": {
                  "ipv6": {
                    "summary": "ipv6",
                    "value": {
                      "status": "ok",
                      "ip": "2001:4860:4860::8888",
                      "version": 6,
                      "found": true,
                      "prefix": "2001:4860:4840::/42",
                      "country": "United States",
                      "country_code": "US",
                      "continent": "North America",
                      "continent_code": "NA",
                      "region": "California",
                      "region_code": "CA",
                      "city": "Mountain View",
                      "postcode": "94040",
                      "lat": 37.386051,
                      "lon": -122.083849,
                      "timezone": "America/Los_Angeles",
                      "utc_offset": "-08:00",
                      "utc_offset_seconds": -28800,
                      "is_eu": false,
                      "asn": 15169,
                      "as_name": "Google LLC",
                      "org": "Google LLC",
                      "usage_type": "Content",
                      "registry": "arin",
                      "allocated": "2000-03-30",
                      "tags": [
                        "a10k",
                        "anycast",
                        "cdn",
                        "icrit",
                        "vpn",
                        "vpsh"
                      ],
                      "is_anycast": true,
                      "is_satellite": false,
                      "is_datacenter": true,
                      "is_proxy": false,
                      "is_vpn_provider": true,
                      "is_tor": false,
                      "crawler": null,
                      "is_private": false,
                      "abuse_email": "network-abuse@google.com",
                      "threat": {
                        "listed": false,
                        "score": 0,
                        "source_count": 0,
                        "categories": [],
                        "is_tor": false,
                        "is_tor_exit": false,
                        "is_bogon": false,
                        "listings": []
                      },
                      "updated_at": "2026-09-18 08:28:30"
                    }
                  },
                  "ipv6_batch": {
                    "summary": "ipv6 batch",
                    "value": {
                      "status": "ok",
                      "results": [
                        {
                          "status": "ok",
                          "ip": "2001:4860:4860::8888",
                          "version": 6,
                          "found": true,
                          "prefix": "2001:4860:4840::/42",
                          "country": "United States",
                          "country_code": "US",
                          "continent": "North America",
                          "continent_code": "NA",
                          "region": "California",
                          "region_code": "CA",
                          "city": "Mountain View",
                          "postcode": "94040",
                          "lat": 37.386051,
                          "lon": -122.083849,
                          "timezone": "America/Los_Angeles",
                          "utc_offset": "-08:00",
                          "utc_offset_seconds": -28800,
                          "is_eu": false,
                          "asn": 15169,
                          "as_name": "Google LLC",
                          "org": "Google LLC",
                          "usage_type": "Content",
                          "registry": "arin",
                          "allocated": "2000-03-30",
                          "tags": [
                            "a10k",
                            "anycast",
                            "cdn",
                            "icrit",
                            "vpn",
                            "vpsh"
                          ],
                          "is_anycast": true,
                          "is_satellite": false,
                          "is_datacenter": true,
                          "is_proxy": false,
                          "is_vpn_provider": true,
                          "is_tor": false,
                          "crawler": null,
                          "is_private": false,
                          "abuse_email": "network-abuse@google.com",
                          "threat": {
                            "listed": false,
                            "score": 0,
                            "source_count": 0,
                            "categories": [],
                            "is_tor": false,
                            "is_tor_exit": false,
                            "is_bogon": false,
                            "listings": []
                          },
                          "updated_at": "2026-09-18 08:28:30"
                        },
                        {
                          "status": "ok",
                          "ip": "2606:4700:4700::1111",
                          "version": 6,
                          "found": true,
                          "prefix": "2606:4700:4700::/48",
                          "country": "United States",
                          "country_code": "US",
                          "continent": "North America",
                          "continent_code": "NA",
                          "region": "California",
                          "region_code": "CA",
                          "city": "San Francisco",
                          "postcode": "94199",
                          "lat": 37.774931,
                          "lon": -122.419421,
                          "timezone": "America/Los_Angeles",
                          "utc_offset": "-08:00",
                          "utc_offset_seconds": -28800,
                          "is_eu": false,
                          "asn": 13335,
                          "as_name": "Cloudflare, Inc.",
                          "org": "Cloudflare, Inc.",
                          "usage_type": "Content",
                          "registry": "arin",
                          "allocated": "2010-07-14",
                          "tags": [
                            "a10k",
                            "anycast",
                            "cdn",
                            "ddosm",
                            "icrit",
                            "rpkirov",
                            "vpn"
                          ],
                          "is_anycast": true,
                          "is_satellite": false,
                          "is_datacenter": true,
                          "is_proxy": false,
                          "is_vpn_provider": true,
                          "is_tor": false,
                          "crawler": null,
                          "is_private": false,
                          "abuse_email": "abuse@cloudflare.com",
                          "threat": {
                            "listed": false,
                            "score": 0,
                            "source_count": 0,
                            "categories": [],
                            "is_tor": false,
                            "is_tor_exit": false,
                            "is_bogon": false,
                            "listings": []
                          },
                          "updated_at": "2026-09-18 08:28:11"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      }
    },
    "/timezone": {
      "get": {
        "operationId": "timezone",
        "summary": "Timezone lookup",
        "description": "IANA zone, offset, daylight saving and local time for a point or a zone id, or for up to 100 points. Docs: https://www.mygeocode.com/docs/timezone-lookup/",
        "tags": [
          "Timezone"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/lat_opt"
          },
          {
            "$ref": "#/components/parameters/lon_opt"
          },
          {
            "$ref": "#/components/parameters/tz"
          },
          {
            "$ref": "#/components/parameters/timestamp"
          },
          {
            "$ref": "#/components/parameters/language"
          },
          {
            "$ref": "#/components/parameters/locations"
          },
          {
            "$ref": "#/components/parameters/path"
          },
          {
            "$ref": "#/components/parameters/samples"
          },
          {
            "$ref": "#/components/parameters/gbounds"
          },
          {
            "$ref": "#/components/parameters/rows"
          },
          {
            "$ref": "#/components/parameters/cols"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "responses": {
          "200": {
            "description": "The zone, or with locations, path or bounds a batch.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TimezoneInfo"
                    },
                    {
                      "$ref": "#/components/schemas/TimezoneBatchResponse"
                    }
                  ]
                },
                "examples": {
                  "timezone": {
                    "summary": "timezone",
                    "value": {
                      "status": "ok",
                      "lat": 35.6762,
                      "lon": 139.6503,
                      "timezone": "Asia/Tokyo",
                      "name": "Japan Standard Time",
                      "abbreviation": "JST",
                      "utc_offset": "+09:00",
                      "utc_offset_seconds": 32400,
                      "raw_offset_seconds": 32400,
                      "dst": false,
                      "dst_offset_seconds": 0,
                      "timestamp": 1795511235,
                      "local_time": "2026-11-24T18:07:15+09:00",
                      "country_code": "JP",
                      "is_ocean": false,
                      "windows_timezone": "Tokyo Standard Time",
                      "next_transition": null
                    }
                  },
                  "timezone_tz": {
                    "summary": "timezone tz",
                    "value": {
                      "status": "ok",
                      "lat": null,
                      "lon": null,
                      "timezone": "Europe/Paris",
                      "name": "Central European Standard Time",
                      "abbreviation": "CET",
                      "utc_offset": "+01:00",
                      "utc_offset_seconds": 3600,
                      "raw_offset_seconds": 3600,
                      "dst": false,
                      "dst_offset_seconds": 0,
                      "timestamp": 1795511235,
                      "local_time": "2026-11-24T10:07:15+01:00",
                      "country_code": "FR",
                      "is_ocean": false,
                      "windows_timezone": "Romance Standard Time",
                      "next_transition": {
                        "timestamp": 1806195600,
                        "utc_offset": "+02:00",
                        "utc_offset_seconds": 7200,
                        "dst": true,
                        "abbreviation": "CEST"
                      }
                    }
                  },
                  "timezone_batch": {
                    "summary": "timezone batch",
                    "value": {
                      "status": "ok",
                      "timestamp": 1795511235,
                      "results": [
                        {
                          "lat": 48.8584,
                          "lon": 2.2945,
                          "timezone": "Europe/Paris",
                          "name": "Central European Standard Time",
                          "abbreviation": "CET",
                          "utc_offset": "+01:00",
                          "utc_offset_seconds": 3600,
                          "raw_offset_seconds": 3600,
                          "dst": false,
                          "dst_offset_seconds": 0,
                          "timestamp": 1795511235,
                          "local_time": "2026-11-24T10:07:15+01:00",
                          "country_code": "FR",
                          "is_ocean": false,
                          "windows_timezone": "Romance Standard Time",
                          "next_transition": {
                            "timestamp": 1806195600,
                            "utc_offset": "+02:00",
                            "utc_offset_seconds": 7200,
                            "dst": true,
                            "abbreviation": "CEST"
                          }
                        },
                        {
                          "lat": 40.6892,
                          "lon": -74.0445,
                          "timezone": "America/New_York",
                          "name": "Eastern Standard Time",
                          "abbreviation": "EST",
                          "utc_offset": "-05:00",
                          "utc_offset_seconds": -18000,
                          "raw_offset_seconds": -18000,
                          "dst": false,
                          "dst_offset_seconds": 0,
                          "timestamp": 1795511235,
                          "local_time": "2026-11-24T04:07:15-05:00",
                          "country_code": "US",
                          "is_ocean": false,
                          "windows_timezone": "Eastern Standard Time",
                          "next_transition": {
                            "timestamp": 1805007600,
                            "utc_offset": "-04:00",
                            "utc_offset_seconds": -14400,
                            "dst": true,
                            "abbreviation": "EDT"
                          }
                        },
                        {
                          "lat": -33.8568,
                          "lon": 151.2153,
                          "timezone": "Australia/Sydney",
                          "name": "Australian Eastern Daylight Time",
                          "abbreviation": "AEDT",
                          "utc_offset": "+11:00",
                          "utc_offset_seconds": 39600,
                          "raw_offset_seconds": 36000,
                          "dst": true,
                          "dst_offset_seconds": 3600,
                          "timestamp": 1795511235,
                          "local_time": "2026-11-24T20:07:15+11:00",
                          "country_code": "AU",
                          "is_ocean": false,
                          "windows_timezone": "AUS Eastern Standard Time",
                          "next_transition": {
                            "timestamp": 1806768000,
                            "utc_offset": "+10:00",
                            "utc_offset_seconds": 36000,
                            "dst": false,
                            "abbreviation": "AEST"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      }
    },
    "/elevation": {
      "get": {
        "operationId": "elevation",
        "summary": "Elevation lookup",
        "description": "Height above sea level for a point, up to 100 points, a path or a grid. Docs: https://www.mygeocode.com/docs/elevation-lookup/",
        "tags": [
          "Elevation"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/lat_opt"
          },
          {
            "$ref": "#/components/parameters/lon_opt"
          },
          {
            "$ref": "#/components/parameters/locations"
          },
          {
            "$ref": "#/components/parameters/path"
          },
          {
            "$ref": "#/components/parameters/samples"
          },
          {
            "$ref": "#/components/parameters/gbounds"
          },
          {
            "$ref": "#/components/parameters/rows"
          },
          {
            "$ref": "#/components/parameters/cols"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "responses": {
          "200": {
            "description": "One entry per point.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ElevationResponse"
                },
                "examples": {
                  "elevation": {
                    "summary": "elevation",
                    "value": {
                      "status": "ok",
                      "results": [
                        {
                          "lat": 27.9881,
                          "lon": 86.925,
                          "elevation_m": 8627.0,
                          "resolution_m": 463.8
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      },
      "post": {
        "operationId": "elevationBatch",
        "summary": "Elevation lookup, batch",
        "description": "Up to 100 points as a POST body.",
        "tags": [
          "Elevation"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ElevationBatchRequest"
              },
              "example": {
                "locations": [
                  [
                    48.8584,
                    2.2945
                  ],
                  [
                    40.6892,
                    -74.0445
                  ],
                  [
                    -33.8568,
                    151.2153
                  ]
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One entry per point.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ElevationResponse"
                },
                "examples": {
                  "elevation_batch": {
                    "summary": "elevation batch",
                    "value": {
                      "status": "ok",
                      "results": [
                        {
                          "lat": 48.8584,
                          "lon": 2.2945,
                          "elevation_m": 37.0,
                          "resolution_m": 463.8
                        },
                        {
                          "lat": 40.6892,
                          "lon": -74.0445,
                          "elevation_m": 0.0,
                          "resolution_m": 463.8
                        },
                        {
                          "lat": -33.8568,
                          "lon": 151.2153,
                          "elevation_m": 10.0,
                          "resolution_m": 463.8
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      }
    },
    "/postcode": {
      "get": {
        "operationId": "postcode",
        "summary": "Postal code lookup",
        "description": "A postal code to its place, region and coordinates. Docs: https://www.mygeocode.com/docs/postal-code-lookup/",
        "tags": [
          "Postal codes"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/code"
          },
          {
            "$ref": "#/components/parameters/pc_country"
          },
          {
            "$ref": "#/components/parameters/pretty"
          }
        ],
        "responses": {
          "200": {
            "description": "Places the code covers.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/X-Quota-Limit"
              },
              "X-Quota-Used": {
                "$ref": "#/components/headers/X-Quota-Used"
              },
              "X-Quota-Free-Remaining": {
                "$ref": "#/components/headers/X-Quota-Free-Remaining"
              },
              "X-Quota-Reset": {
                "$ref": "#/components/headers/X-Quota-Reset"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostcodeResponse"
                },
                "examples": {
                  "postcode": {
                    "summary": "postcode",
                    "value": {
                      "status": "ok",
                      "postcode": "10001",
                      "country_code": "US",
                      "results": [
                        {
                          "postcode": "10001",
                          "place": "New York",
                          "region": "New York",
                          "region_code": "NY",
                          "country": "United States",
                          "country_code": "US",
                          "lat": 40.748401,
                          "lon": -73.996702
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "401": {
            "$ref": "#/components/responses/E401"
          },
          "402": {
            "$ref": "#/components/responses/E402"
          },
          "403": {
            "$ref": "#/components/responses/E403"
          },
          "429": {
            "$ref": "#/components/responses/E429"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          },
          "503": {
            "$ref": "#/components/responses/E503"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "const": "error"
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Machine-readable code, for example invalid_request, quota_exceeded, invalid_key, no_credits, key_ip_limit, rate_limited, server_error, unavailable, maintenance. The errors page lists them all."
              },
              "message": {
                "type": "string",
                "description": "Explanation for a person."
              },
              "param": {
                "type": "string",
                "description": "The parameter at fault, when there is one."
              }
            }
          }
        },
        "description": "The error envelope every error answer uses."
      },
      "Bounds": {
        "type": "object",
        "properties": {
          "north": {
            "type": [
              "number",
              "null"
            ]
          },
          "south": {
            "type": [
              "number",
              "null"
            ]
          },
          "east": {
            "type": [
              "number",
              "null"
            ]
          },
          "west": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "description": "The box around a place, in decimal degrees."
      },
      "Components": {
        "type": "object",
        "properties": {
          "poi": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of a point of interest, when the match is one."
          },
          "building": {
            "type": [
              "string",
              "null"
            ],
            "description": "Building name."
          },
          "unit": {
            "type": [
              "string",
              "null"
            ],
            "description": "Flat or unit."
          },
          "level": {
            "type": [
              "string",
              "null"
            ],
            "description": "Floor."
          },
          "house_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "House number, with letters and ranges (221B, 12-14)."
          },
          "road": {
            "type": [
              "string",
              "null"
            ],
            "description": "Street name with its type."
          },
          "lot": {
            "type": [
              "string",
              "null"
            ],
            "description": "Australia: the lot number of an address with no house number."
          },
          "suburb": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sub-city area, where the country uses them."
          },
          "municipality": {
            "type": [
              "string",
              "null"
            ],
            "description": "US only: the incorporated place an address lies in when its mail goes to another town."
          },
          "city": {
            "type": [
              "string",
              "null"
            ],
            "description": "City, town or village."
          },
          "county": {
            "type": [
              "string",
              "null"
            ],
            "description": "County or district."
          },
          "state": {
            "type": [
              "string",
              "null"
            ],
            "description": "State, province or region."
          },
          "state_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 3166-2 suffix of the state, where one exists."
          },
          "postcode": {
            "type": [
              "string",
              "number",
              "null"
            ],
            "description": "Postal code, formatted as the postal authority formats it. Text; a few results carry it as a number, so read it as text."
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country name."
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lower-case ISO 3166-1 alpha-2 code."
          },
          "official_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Official name of a country known only from boundary data."
          }
        },
        "additionalProperties": true,
        "description": "Address parts. Only the parts an address has are present."
      },
      "Place": {
        "type": "object",
        "additionalProperties": true,
        "description": "One forward or reverse result.",
        "properties": {
          "formatted": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full address in the country's conventional format."
          },
          "lat": {
            "type": [
              "number",
              "null"
            ],
            "description": "Latitude, WGS 84."
          },
          "lon": {
            "type": [
              "number",
              "null"
            ],
            "description": "Longitude, WGS 84."
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "address, street, postcode, city, suburb, region, country or poi."
          },
          "precision": {
            "type": [
              "string",
              "null"
            ],
            "description": "house, street, postcode, city, region or country: what the point represents."
          },
          "confidence": {
            "type": [
              "number",
              "null"
            ],
            "description": "0 to 1. Below 0.5 means a guess."
          },
          "place_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stable identifier; pass it back as place_id."
          },
          "components": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Components"
              },
              {
                "type": "null"
              }
            ],
            "description": "Address parts."
          },
          "bounds": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Bounds"
              },
              {
                "type": "null"
              }
            ],
            "description": "Box around the matched feature."
          },
          "distance_m": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Reverse, and forward with a lat,lon query: metres from the point you sent."
          },
          "formatted_place": {
            "type": [
              "string",
              "null"
            ],
            "description": "With place: its name before the address."
          },
          "place": {
            "type": [
              "object",
              "null"
            ],
            "description": "A business or other named place at the address.",
            "additionalProperties": true
          },
          "parcel": {
            "type": [
              "object",
              "null"
            ],
            "description": "United States official parcel data for the address.",
            "additionalProperties": true
          },
          "codes": {
            "type": [
              "object",
              "null"
            ],
            "description": "Plus code, geohash, MGRS, Maidenhead, DMS and other location codes.",
            "additionalProperties": true
          },
          "population": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Population of a city, region or country result."
          },
          "un_locode": {
            "type": [
              "object",
              "null"
            ],
            "description": "What a UN/LOCODE query stands for.",
            "additionalProperties": true
          },
          "timezone": {
            "type": [
              "object",
              "null"
            ],
            "description": "With timezone=1.",
            "additionalProperties": true
          },
          "elevation_m": {
            "type": [
              "number",
              "null"
            ],
            "description": "With elevation=1: metres above sea level."
          },
          "wikidata": {
            "type": [
              "string",
              "null"
            ],
            "description": "With wikidata=1: the Wikidata id."
          },
          "country_info": {
            "type": [
              "object",
              "null"
            ],
            "description": "With country_info=1.",
            "additionalProperties": true
          },
          "sun": {
            "type": [
              "object",
              "null"
            ],
            "description": "With sun=1: sunrise, sunset, solar noon, civil dawn and dusk.",
            "additionalProperties": true
          },
          "regions": {
            "type": [
              "object",
              "null"
            ],
            "description": "With regions=1: NUTS and administrative areas.",
            "additionalProperties": true
          },
          "districts": {
            "type": [
              "object",
              "null"
            ],
            "description": "With districts=1: US legislative and school districts.",
            "additionalProperties": true
          },
          "census": {
            "type": [
              "object",
              "null"
            ],
            "description": "With census=1: US census geography.",
            "additionalProperties": true
          },
          "demographics": {
            "type": [
              "object",
              "null"
            ],
            "description": "With demographics=1: US American Community Survey figures.",
            "additionalProperties": true
          },
          "road": {
            "type": [
              "object",
              "null"
            ],
            "description": "With road=1: the nearest road.",
            "additionalProperties": true
          },
          "intersection": {
            "type": [
              "object",
              "null"
            ],
            "description": "With road=1: the nearest junction of named roads.",
            "additionalProperties": true
          },
          "site": {
            "type": [
              "object",
              "null"
            ],
            "description": "With site=1: Australian address site points.",
            "additionalProperties": true
          }
        }
      },
      "ForwardResponse": {
        "type": "object",
        "required": [
          "status",
          "results"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "ok on success."
          },
          "query": {
            "type": [
              "string",
              "null"
            ],
            "description": "The text interpreted, after trimming."
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Place"
            },
            "description": "Matches, best first. Empty when nothing matched."
          }
        }
      },
      "ForwardBatchEntry": {
        "type": "object",
        "properties": {
          "query": {
            "type": [
              "string",
              "null"
            ]
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Place"
            },
            "description": "Matches for this query, best first."
          }
        }
      },
      "ForwardBatchResponse": {
        "type": "object",
        "required": [
          "status",
          "results"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "ok on success."
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ForwardBatchEntry"
            },
            "description": "One entry per query, in the order sent."
          }
        }
      },
      "ReverseResponse": {
        "type": "object",
        "required": [
          "result"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "ok on success."
          },
          "lat": {
            "type": [
              "number",
              "null"
            ],
            "description": "The point you sent."
          },
          "lon": {
            "type": [
              "number",
              "null"
            ],
            "description": "The point you sent."
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Place"
              },
              {
                "type": "null"
              }
            ],
            "description": "null when nothing is within radius at the requested level."
          },
          "boundaries": {
            "type": [
              "object",
              "null"
            ],
            "description": "With boundaries=1, for a point in Australia.",
            "additionalProperties": true
          }
        }
      },
      "ReverseBatchResponse": {
        "type": "object",
        "required": [
          "status",
          "results"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "ok on success."
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReverseResponse"
            },
            "description": "One entry per point, in the order sent."
          }
        }
      },
      "Suggestion": {
        "type": "object",
        "properties": {
          "text": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display text."
          },
          "lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "lon": {
            "type": [
              "number",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "precision": {
            "type": [
              "string",
              "null"
            ]
          },
          "place_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass to /v1/forward?place_id= for full components and bounds."
          }
        }
      },
      "AutocompleteResponse": {
        "type": "object",
        "required": [
          "status",
          "suggestions"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "ok on success."
          },
          "query": {
            "type": [
              "string",
              "null"
            ]
          },
          "suggestions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Suggestion"
            },
            "description": "Suggestions, best first."
          }
        }
      },
      "IpInfo": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "status": {
            "type": "string",
            "description": "ok, or in a batch error for an address that could not be read."
          },
          "ip": {
            "type": [
              "string",
              "null"
            ],
            "description": "The address looked up, in canonical form."
          },
          "version": {
            "type": [
              "integer",
              "null"
            ],
            "description": "4 or 6."
          },
          "found": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "False when no network covers the address."
          },
          "prefix": {
            "type": [
              "string",
              "null"
            ],
            "description": "Most specific network containing the address (CIDR)."
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Upper-case ISO 3166-1 alpha-2."
          },
          "continent": {
            "type": [
              "string",
              "null"
            ]
          },
          "continent_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "region_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "postcode": {
            "type": [
              "string",
              "null"
            ]
          },
          "lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "lon": {
            "type": [
              "number",
              "null"
            ]
          },
          "elevation_m": {
            "type": [
              "number",
              "null"
            ],
            "description": "With elevation=1."
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ],
            "description": "IANA zone."
          },
          "utc_offset": {
            "type": [
              "string",
              "null"
            ],
            "description": "+HH:MM in force now."
          },
          "utc_offset_seconds": {
            "type": [
              "integer",
              "null"
            ]
          },
          "is_eu": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "asn": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Autonomous system number."
          },
          "as_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "org": {
            "type": [
              "string",
              "null"
            ]
          },
          "usage_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Eyeball, Carrier, Content, Hosting, Enterprise, Education, NSP or unknown."
          },
          "registry": {
            "type": [
              "string",
              "null"
            ]
          },
          "allocated": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_anycast": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_satellite": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_datacenter": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_proxy": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_vpn_provider": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_tor": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_private": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Reserved or non-routable address; the answer then carries only ip, version, is_private and reason."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "abuse_email": {
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Operator-level tags such as dsl, cdn, vpn, satnet."
          },
          "crawler": {
            "type": [
              "object",
              "null"
            ],
            "description": "Crawler operator name and type, when the address is in a published crawler range.",
            "additionalProperties": true
          },
          "threat": {
            "type": [
              "object",
              "null"
            ],
            "description": "Reputation: listed, score, source_count, categories, listings.",
            "additionalProperties": true
          },
          "error": {
            "type": [
              "object",
              "null"
            ],
            "description": "Only on a batch entry the API rejected: code and message.",
            "additionalProperties": true
          }
        }
      },
      "IpBatchResponse": {
        "type": "object",
        "required": [
          "status",
          "results"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "ok on success."
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IpInfo"
            },
            "description": "One entry per address, in the order sent."
          }
        }
      },
      "TimezoneTransition": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": [
              "integer",
              "null"
            ]
          },
          "utc_offset": {
            "type": [
              "string",
              "null"
            ]
          },
          "utc_offset_seconds": {
            "type": [
              "integer",
              "null"
            ]
          },
          "dst": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "abbreviation": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "TimezoneInfo": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "status": {
            "type": "string",
            "description": "ok on success."
          },
          "lat": {
            "type": [
              "number",
              "null"
            ],
            "description": "The point you sent; null with tz."
          },
          "lon": {
            "type": [
              "number",
              "null"
            ],
            "description": "The point you sent; null with tz."
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ],
            "description": "IANA name."
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Long name in force at timestamp."
          },
          "abbreviation": {
            "type": [
              "string",
              "null"
            ]
          },
          "utc_offset": {
            "type": [
              "string",
              "null"
            ],
            "description": "+HH:MM at timestamp."
          },
          "utc_offset_seconds": {
            "type": [
              "integer",
              "null"
            ]
          },
          "raw_offset_seconds": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Standard offset."
          },
          "dst": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Daylight saving in effect."
          },
          "dst_offset_seconds": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Daylight saving part of the offset."
          },
          "timestamp": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The moment described."
          },
          "local_time": {
            "type": [
              "string",
              "null"
            ],
            "description": "RFC 3339 local time with offset."
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_ocean": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "True for the Etc/GMT zones at sea."
          },
          "windows_timezone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Matching Windows time zone id (CLDR)."
          },
          "next_transition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TimezoneTransition"
              },
              {
                "type": "null"
              }
            ],
            "description": "Next offset change within two years."
          }
        }
      },
      "TimezoneBatchResponse": {
        "type": "object",
        "required": [
          "status",
          "results"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "ok on success."
          },
          "timestamp": {
            "type": [
              "integer",
              "null"
            ]
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimezoneInfo"
            },
            "description": "One entry per point, in input order."
          }
        }
      },
      "ElevationPoint": {
        "type": "object",
        "properties": {
          "lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "lon": {
            "type": [
              "number",
              "null"
            ]
          },
          "elevation_m": {
            "type": [
              "number",
              "null"
            ],
            "description": "Metres above mean sea level, one decimal; negative below sea level. null only where the dataset has no value."
          },
          "resolution_m": {
            "type": [
              "number",
              "null"
            ],
            "description": "Grid spacing in metres (463.8)."
          }
        }
      },
      "ElevationResponse": {
        "type": "object",
        "required": [
          "status",
          "results"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "ok on success."
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ElevationPoint"
            },
            "description": "One entry per point, in input order."
          }
        }
      },
      "PostcodePlace": {
        "type": "object",
        "properties": {
          "postcode": {
            "type": [
              "string",
              "null"
            ],
            "description": "The code as the country writes it."
          },
          "place": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "region_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Upper-case ISO 3166-1 alpha-2."
          },
          "lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "lon": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      },
      "PostcodeResponse": {
        "type": "object",
        "required": [
          "status",
          "results"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "ok on success."
          },
          "postcode": {
            "type": [
              "string",
              "null"
            ],
            "description": "The code after normalisation."
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The country filter applied, if any."
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostcodePlace"
            },
            "description": "Places the code covers. Empty if unknown."
          }
        }
      },
      "ForwardBatchRequest": {
        "type": "object",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "string"
            },
            "description": "Up to 100 queries. Each counts as one request."
          }
        }
      },
      "ReverseBatchRequest": {
        "type": "object",
        "required": [
          "coords"
        ],
        "properties": {
          "coords": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "array",
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "minItems": 2,
              "maxItems": 2
            },
            "description": "Up to 100 [lat, lon] pairs. Each counts as one request."
          }
        }
      },
      "ElevationBatchRequest": {
        "type": "object",
        "required": [
          "locations"
        ],
        "properties": {
          "locations": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "array",
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "minItems": 2,
              "maxItems": 2
            },
            "description": "Up to 100 [lat, lon] pairs. Each counts as one request."
          }
        }
      }
    },
    "parameters": {
      "q": {
        "name": "q",
        "in": "query",
        "required": false,
        "description": "Free-form text: an address, place, postal code, plus code or lat,lon. Up to 256 characters. Required unless a structured field or place_id is sent.",
        "schema": {
          "type": "string",
          "maxLength": 256
        }
      },
      "s_street": {
        "name": "street",
        "in": "query",
        "required": false,
        "description": "Structured search: street with house number.",
        "schema": {
          "type": "string"
        }
      },
      "s_city": {
        "name": "city",
        "in": "query",
        "required": false,
        "description": "Structured search: city.",
        "schema": {
          "type": "string"
        }
      },
      "s_state": {
        "name": "state",
        "in": "query",
        "required": false,
        "description": "Structured search: state, province or region.",
        "schema": {
          "type": "string"
        }
      },
      "s_postcode": {
        "name": "postcode",
        "in": "query",
        "required": false,
        "description": "Structured search: postal code.",
        "schema": {
          "type": "string"
        }
      },
      "s_country": {
        "name": "country",
        "in": "query",
        "required": false,
        "description": "Structured search: ISO 3166-1 alpha-2 country code.",
        "schema": {
          "type": "string"
        }
      },
      "place_id": {
        "name": "place_id",
        "in": "query",
        "required": false,
        "description": "A place_id from autocomplete or an earlier result. Overrides q.",
        "schema": {
          "type": "string"
        }
      },
      "limit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "Maximum results, 1 to 10. Default 5.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10,
          "default": 5
        }
      },
      "countries": {
        "name": "countries",
        "in": "query",
        "required": false,
        "description": "Comma-separated ISO 3166-1 alpha-2 codes, at most 10.",
        "schema": {
          "type": "string",
          "example": "gb,ie"
        }
      },
      "bounds": {
        "name": "bounds",
        "in": "query",
        "required": false,
        "description": "south,west,north,east in decimal degrees. Results inside rank first; strict=1 excludes the rest.",
        "schema": {
          "type": "string",
          "example": "51.28,-0.51,51.69,0.33"
        }
      },
      "strict": {
        "name": "strict",
        "in": "query",
        "required": false,
        "description": "1 excludes results outside bounds.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "proximity": {
        "name": "proximity",
        "in": "query",
        "required": false,
        "description": "lat,lon. Results near this point rank first.",
        "schema": {
          "type": "string",
          "example": "51.5074,-0.1278"
        }
      },
      "types": {
        "name": "types",
        "in": "query",
        "required": false,
        "description": "Comma-separated subset of address, street, postcode, city, region, country, poi.",
        "schema": {
          "type": "string"
        }
      },
      "lang": {
        "name": "lang",
        "in": "query",
        "required": false,
        "description": "ISO 639-1 code for the language of the response. Without it, each result comes in the language of its own area.",
        "schema": {
          "type": "string",
          "example": "en"
        }
      },
      "f_timezone": {
        "name": "timezone",
        "in": "query",
        "required": false,
        "description": "1 adds the timezone block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_elevation": {
        "name": "elevation",
        "in": "query",
        "required": false,
        "description": "1 adds the elevation block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_wikidata": {
        "name": "wikidata",
        "in": "query",
        "required": false,
        "description": "1 adds the wikidata block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_country_info": {
        "name": "country_info",
        "in": "query",
        "required": false,
        "description": "1 adds the country_info block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_codes": {
        "name": "codes",
        "in": "query",
        "required": false,
        "description": "1 adds the codes block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_sun": {
        "name": "sun",
        "in": "query",
        "required": false,
        "description": "1 adds the sun block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_regions": {
        "name": "regions",
        "in": "query",
        "required": false,
        "description": "1 adds the regions block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_districts": {
        "name": "districts",
        "in": "query",
        "required": false,
        "description": "1 adds the districts block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_census": {
        "name": "census",
        "in": "query",
        "required": false,
        "description": "1 adds the census block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_demographics": {
        "name": "demographics",
        "in": "query",
        "required": false,
        "description": "1 adds the demographics block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_road": {
        "name": "road",
        "in": "query",
        "required": false,
        "description": "1 adds the road block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "f_site": {
        "name": "site",
        "in": "query",
        "required": false,
        "description": "1 adds the site block.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "annotations": {
        "name": "annotations",
        "in": "query",
        "required": false,
        "description": "1 switches on every extra block at once.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "pretty": {
        "name": "pretty",
        "in": "query",
        "required": false,
        "description": "1 asks for indented JSON.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "lat": {
        "name": "lat",
        "in": "query",
        "required": true,
        "description": "Latitude, -90 to 90.",
        "schema": {
          "type": "number",
          "minimum": -90,
          "maximum": 90,
          "example": 48.8584
        }
      },
      "lon": {
        "name": "lon",
        "in": "query",
        "required": true,
        "description": "Longitude, -180 to 180.",
        "schema": {
          "type": "number",
          "minimum": -180,
          "maximum": 180,
          "example": 2.2945
        }
      },
      "lat_opt": {
        "name": "lat",
        "in": "query",
        "required": false,
        "description": "Latitude, -90 to 90. Required unless an alternative form is used.",
        "schema": {
          "type": "number",
          "minimum": -90,
          "maximum": 90,
          "example": 48.8584
        }
      },
      "lon_opt": {
        "name": "lon",
        "in": "query",
        "required": false,
        "description": "Longitude, -180 to 180. Required unless an alternative form is used.",
        "schema": {
          "type": "number",
          "minimum": -180,
          "maximum": 180,
          "example": 2.2945
        }
      },
      "level": {
        "name": "level",
        "in": "query",
        "required": false,
        "description": "Most specific level to return.",
        "schema": {
          "type": "string",
          "enum": [
            "address",
            "street",
            "postcode",
            "city",
            "region",
            "country"
          ],
          "default": "address"
        }
      },
      "radius": {
        "name": "radius",
        "in": "query",
        "required": false,
        "description": "Search radius in metres for addresses and streets, 1 to 5000. Default 5000.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5000
        }
      },
      "boundaries": {
        "name": "boundaries",
        "in": "query",
        "required": false,
        "description": "1 adds every Australian boundary the point falls in.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "ip": {
        "name": "ip",
        "in": "query",
        "required": false,
        "description": "The address. Default: the address the request came from.",
        "schema": {
          "type": "string"
        }
      },
      "ips": {
        "name": "ips",
        "in": "query",
        "required": false,
        "description": "Comma-separated addresses, up to 100, for a batch (the answer is then an IpBatchResponse). Each counts as one request.",
        "schema": {
          "type": "string"
        }
      },
      "ip_elev": {
        "name": "elevation",
        "in": "query",
        "required": false,
        "description": "1 adds elevation_m.",
        "schema": {
          "type": "integer",
          "enum": [
            0,
            1
          ]
        }
      },
      "locations": {
        "name": "locations",
        "in": "query",
        "required": false,
        "description": "Alternative to lat and lon: up to 100 points as lat,lon|lat,lon or an encoded polyline enc:... The answer then has a results array.",
        "schema": {
          "type": "string"
        }
      },
      "path": {
        "name": "path",
        "in": "query",
        "required": false,
        "description": "Alternative to lat and lon: a path lat,lon|lat,lon sampled samples times.",
        "schema": {
          "type": "string"
        }
      },
      "samples": {
        "name": "samples",
        "in": "query",
        "required": false,
        "description": "Points along path, 2 to 100.",
        "schema": {
          "type": "integer",
          "minimum": 2,
          "maximum": 100
        }
      },
      "gbounds": {
        "name": "bounds",
        "in": "query",
        "required": false,
        "description": "Alternative to lat and lon: a grid of rows by cols points over south,west,north,east.",
        "schema": {
          "type": "string"
        }
      },
      "rows": {
        "name": "rows",
        "in": "query",
        "required": false,
        "description": "Rows of the grid.",
        "schema": {
          "type": "integer",
          "minimum": 2
        }
      },
      "cols": {
        "name": "cols",
        "in": "query",
        "required": false,
        "description": "Columns of the grid.",
        "schema": {
          "type": "integer",
          "minimum": 2
        }
      },
      "tz": {
        "name": "tz",
        "in": "query",
        "required": false,
        "description": "Alternative to coordinates: an IANA zone id (a Windows id is accepted too).",
        "schema": {
          "type": "string",
          "example": "Europe/Paris"
        }
      },
      "timestamp": {
        "name": "timestamp",
        "in": "query",
        "required": false,
        "description": "Unix time in seconds, 1900 to 2100. Default: now.",
        "schema": {
          "type": "integer"
        }
      },
      "language": {
        "name": "language",
        "in": "query",
        "required": false,
        "description": "Language for the zone name, such as de or pt-BR. Default English.",
        "schema": {
          "type": "string"
        }
      },
      "code": {
        "name": "code",
        "in": "query",
        "required": true,
        "description": "The postal code. Spaces, hyphens and case are normalised.",
        "schema": {
          "type": "string",
          "example": "10001"
        }
      },
      "pc_country": {
        "name": "country",
        "in": "query",
        "required": false,
        "description": "ISO 3166-1 alpha-2 code. Strongly recommended.",
        "schema": {
          "type": "string",
          "example": "US"
        }
      },
      "acq": {
        "name": "q",
        "in": "query",
        "required": true,
        "description": "What the user has typed so far, 2 to 128 characters.",
        "schema": {
          "type": "string",
          "minLength": 2,
          "maxLength": 128,
          "example": "1600 Pennsylvania"
        }
      }
    },
    "headers": {
      "X-Request-Id": {
        "description": "Identifier of the request; quote it to support.",
        "schema": {
          "type": "string"
        }
      },
      "X-Quota-Limit": {
        "description": "Free requests a day for this key's account or network (-1 on Unlimited).",
        "schema": {
          "type": "string"
        }
      },
      "X-Quota-Used": {
        "description": "Free requests used today.",
        "schema": {
          "type": "string"
        }
      },
      "X-Quota-Free-Remaining": {
        "description": "Free requests left today.",
        "schema": {
          "type": "string"
        }
      },
      "X-Quota-Reset": {
        "description": "Unix time when the free requests reset (00:00 UTC).",
        "schema": {
          "type": "string"
        }
      },
      "X-Credits-Remaining": {
        "description": "Prepaid credit left, for a key with credit.",
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "E400": {
        "description": "Bad request: invalid_request or https_required.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Quota-Limit": {
            "$ref": "#/components/headers/X-Quota-Limit"
          },
          "X-Quota-Used": {
            "$ref": "#/components/headers/X-Quota-Used"
          },
          "X-Quota-Free-Remaining": {
            "$ref": "#/components/headers/X-Quota-Free-Remaining"
          },
          "X-Quota-Reset": {
            "$ref": "#/components/headers/X-Quota-Reset"
          },
          "X-Credits-Remaining": {
            "$ref": "#/components/headers/X-Credits-Remaining"
          }
        }
      },
      "E401": {
        "description": "missing_key, invalid_key or key_revoked.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Quota-Limit": {
            "$ref": "#/components/headers/X-Quota-Limit"
          },
          "X-Quota-Used": {
            "$ref": "#/components/headers/X-Quota-Used"
          },
          "X-Quota-Free-Remaining": {
            "$ref": "#/components/headers/X-Quota-Free-Remaining"
          },
          "X-Quota-Reset": {
            "$ref": "#/components/headers/X-Quota-Reset"
          },
          "X-Credits-Remaining": {
            "$ref": "#/components/headers/X-Credits-Remaining"
          }
        }
      },
      "E402": {
        "description": "no_credits: the free allowance is used and the account balance is empty.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Quota-Limit": {
            "$ref": "#/components/headers/X-Quota-Limit"
          },
          "X-Quota-Used": {
            "$ref": "#/components/headers/X-Quota-Used"
          },
          "X-Quota-Free-Remaining": {
            "$ref": "#/components/headers/X-Quota-Free-Remaining"
          },
          "X-Quota-Reset": {
            "$ref": "#/components/headers/X-Quota-Reset"
          },
          "X-Credits-Remaining": {
            "$ref": "#/components/headers/X-Credits-Remaining"
          }
        }
      },
      "E403": {
        "description": "key_ip_limit, browser_key_origin, account_suspended, email_unverified or package_suspended.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Quota-Limit": {
            "$ref": "#/components/headers/X-Quota-Limit"
          },
          "X-Quota-Used": {
            "$ref": "#/components/headers/X-Quota-Used"
          },
          "X-Quota-Free-Remaining": {
            "$ref": "#/components/headers/X-Quota-Free-Remaining"
          },
          "X-Quota-Reset": {
            "$ref": "#/components/headers/X-Quota-Reset"
          },
          "X-Credits-Remaining": {
            "$ref": "#/components/headers/X-Credits-Remaining"
          }
        }
      },
      "E429": {
        "description": "quota_exceeded, rate_limited or key_daily_cap. Retry-After says how long to wait, when sent.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Quota-Limit": {
            "$ref": "#/components/headers/X-Quota-Limit"
          },
          "X-Quota-Used": {
            "$ref": "#/components/headers/X-Quota-Used"
          },
          "X-Quota-Free-Remaining": {
            "$ref": "#/components/headers/X-Quota-Free-Remaining"
          },
          "X-Quota-Reset": {
            "$ref": "#/components/headers/X-Quota-Reset"
          },
          "X-Credits-Remaining": {
            "$ref": "#/components/headers/X-Credits-Remaining"
          },
          "Retry-After": {
            "description": "Seconds to wait before trying again.",
            "schema": {
              "type": "integer"
            }
          }
        }
      },
      "E500": {
        "description": "server_error. Retry once after a second.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Quota-Limit": {
            "$ref": "#/components/headers/X-Quota-Limit"
          },
          "X-Quota-Used": {
            "$ref": "#/components/headers/X-Quota-Used"
          },
          "X-Quota-Free-Remaining": {
            "$ref": "#/components/headers/X-Quota-Free-Remaining"
          },
          "X-Quota-Reset": {
            "$ref": "#/components/headers/X-Quota-Reset"
          },
          "X-Credits-Remaining": {
            "$ref": "#/components/headers/X-Credits-Remaining"
          }
        }
      },
      "E503": {
        "description": "unavailable, backend_unavailable or maintenance. Retry after Retry-After, or with backoff.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          },
          "X-Quota-Limit": {
            "$ref": "#/components/headers/X-Quota-Limit"
          },
          "X-Quota-Used": {
            "$ref": "#/components/headers/X-Quota-Used"
          },
          "X-Quota-Free-Remaining": {
            "$ref": "#/components/headers/X-Quota-Free-Remaining"
          },
          "X-Quota-Reset": {
            "$ref": "#/components/headers/X-Quota-Reset"
          },
          "X-Credits-Remaining": {
            "$ref": "#/components/headers/X-Credits-Remaining"
          },
          "Retry-After": {
            "description": "Seconds to wait before trying again.",
            "schema": {
              "type": "integer"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "A key from the dashboard. Optional: without one, each network gets 2,500 free requests a day."
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "The same key as a bearer token."
      },
      "ApiKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "key",
        "description": "The same key as a query parameter (the header is preferred: it stays out of logs)."
      }
    }
  }
}
