Skip to content

Standard structure geocode.xyz of Germany is different #4

@ametad

Description

@ametad

Some time ago (I am not sure how long ago, could be a year already), the response of German geocodes from postal codes, are changed in structure. The standard key is now missing!

We did not found out before because a lot of responses are cached at our side. But lately when we try to fetch responses of not cached German geocodes, we see the structure is totally different than before.

Examples:

We fetch gecodes mainly from: NL (Holland), DE (Germany), BE (Belgium), PL (Poland) and UK (United Kingdom).


BE
GET https://geocode.xyz/?locate=8000&region=BE&geoit=json

Response:

Click to expand JSON
{
  "standard": {
    "addresst": "420 Blankenbergse Steenweg",
    "stnumber": "420",
    "statename": "BE",
    "region": "BE",
    "postal": "8000",
    "city": "Brugge",
    "prov": "BE",
    "countryname": "Belgium",
    "confidence": "0.3"
  },
  "longt": "3.22372",
  "alt": {},
  "elevation": {},
  "remaining_credits": "4922",
  "latt": "51.21778"

2024-10-23T112813.200.json


NL
GET https://geocode.xyz/?locate=1024AB&region=NL&geoit=json

Click to expand JSON
{
  "standard": {
    "addresst": "57 Jisperveldstraat",
    "stnumber": "57",
    "statename": "Noord-Holland",
    "region": "Noord-Holland",
    "postal": "1024AB",
    "city": "Amsterdam",
    "prov": "NL",
    "countryname": "Netherlands",
    "confidence": "0.3"
  },
  "longt": "4.94923",
  "alt": {
    "loc": {
      "streets": {
        "street_address": {
          "staddress": "Jisperveldstraat",
          "stnumber": "43-57"
        }
      },
      "longt": "4.94923",
      "city": "Amsterdam",
      "cc": "15",
      "region": "Noord-Holland",
      "latt": "52.39677"
    }
  },
  "elevation": {},
  "remaining_credits": "4920",
  "latt": "52.39677"
}

2024-10-23T113203.200.json


PL

GET https://geocode.xyz/?locate=66-220&region=PL&geoit=json

Click to expand JSON
{
  "standard": {
    "addresst": "1 Bolesława Chrobrego",
    "stnumber": "1",
    "statename": "PL",
    "region": "PL",
    "postal": "66220",
    "city": "Łagów",
    "prov": "PL",
    "countryname": "Poland",
    "confidence": "0.2"
  },
  "longt": "15.29103",
  "alt": {
    "loc": {
      "streets": {},
      "longt": "15.29103",
      "city": "Łagów",
      "cc": "472",
      "region": "PL",
      "latt": "52.33365"
    }
  },
  "elevation": {},
  "remaining_credits": "4917",
  "latt": "52.33365"
}

2024-10-23T114408.200.json


DE

GET https://geocode.xyz/?locate=49808&region=DE&geoit=json

Click to expand JSON
{
  "statename": {},
  "distance": "0.020",
  "elevation": "25",
  "osmtags": {
    "wikipedia": "de:Lingen (Ems)",
    "wikidata": "Q4185",
    "population": "51177",
    "name_prefix": "Stadt",
    "de_regionalschluessel": "034540032032",
    "name": "Lingen (Ems)",
    "de_amtlicher_gemeindeschluessel": "03454032",
    "admin_level": "8",
    "boundary": "administrative",
    "type": "boundary"
  },
  "state": "Niedersachsen",
  "latt": "52.52864",
  "city": "Lingen",
  "prov": "DE",
  "intersection": {
    "distance": "0.058",
    "xlat": "52.527995",
    "xlon": "7.305475",
    "street2": "Am Kanaldamm",
    "street1": "Horstweg"
  },
  "geocode": "LINGEN-ETDPS",
  "geonumber": "3073226999068",
  "country": "Germany",
  "stnumber": "1",
  "staddress": "Am Kanaldamm",
  "inlatt": "52.5284565520948",
  "alt": {
    "loc": [
      {
        "staddress": "Am Kanaldamm",
        "stnumber": "1",
        "postal": "49808",
        "latt": "52.52864",
        "city": "Lingen",
        "prov": "Niedersachsen",
        "longt": "7.30583",
        "class": {}
      },
      {
        "staddress": "Am Kanaldamm",
        "stnumber": "1",
        "postal": "49808",
        "dist": "0.020",
        "latt": "52.52864",
        "city": "Lingen",
        "prov": "Niedersachsen",
        "longt": "7.30583",
        "class": {}
      },
      {
        "staddress": "Horstweg",
        "stnumber": "11",
        "postal": "49808",
        "dist": "0.037",
        "latt": "52.52815",
        "city": "Lingen",
        "prov": "DE",
        "longt": "7.30605",
        "class": {}
      },
      {
        "staddress": "Horstweg",
        "stnumber": "17",
        "postal": "49808",
        "dist": "0.041",
        "latt": "52.52833",
        "city": "Lingen",
        "prov": "DE",
        "longt": "7.30529",
        "class": {}
      }
    ]
  },
  "timezone": "Europe/Berlin",
  "region": "Lower Saxony",
  "postal": "49808",
  "longt": "7.30583",
  "remaining_credits": "4921",
  "confidence": "0.9",
  "inlongt": "7.30584746465489",
  "class": {},
  "adminareas": {
    "admin6": {
      "wikipedia": "de:Landkreis Emsland",
      "source": "http://wiki.openstreetmap.org/wiki/Import/Catalogue/Kreisgrenzen_Deutschland_2005",
      "de_regionalschluessel": "03454",
      "TMC_cid_58_tabcd_1_LocationCode": "400",
      "name_ru": "Эмсланд",
      "TMC_cid_58_tabcd_1_LCLversion": "8.00",
      "boundary": "administrative",
      "license_plate_code": "EL",
      "admin_title": "Landkreis",
      "wikidata": "Q5936",
      "TMC_cid_58_tabcd_1_Class": "Area",
      "name": "Landkreis Emsland",
      "de_amtlicher_gemeindeschluessel": "03454",
      "admin_level": "6",
      "level": "6",
      "type": "boundary",
      "border_type": "county",
      "name_fr": "Pays de l'Ems (arrondissement)"
    },
    "admin8": {
      "wikipedia": "de:Lingen (Ems)",
      "wikidata": "Q4185",
      "population": "51177",
      "name_prefix": "Stadt",
      "de_regionalschluessel": "034540032032",
      "name": "Lingen (Ems)",
      "de_amtlicher_gemeindeschluessel": "03454032",
      "admin_level": "8",
      "level": "8",
      "boundary": "administrative",
      "type": "boundary"
    }
  },
  "altgeocode": "LINGEN-ETDPS"
}

2024-10-23T113047.200.json

Question

Can the German geocode please get the same default key in the response data structure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions