api-definitions icon indicating copy to clipboard operation
api-definitions copied to clipboard

Regions' ID mismatch between "regionid" and "postcode" requests

Open alexandrenicol opened this issue 4 years ago • 0 comments

Hi,

There seems to be a mismatch in the IDs returned by the API depending on the request.

Examples:

{{API_URL}}/regional/intensity/2020-04-27T12:12Z/pt24h/postcode/BN3

Returns:

{
    "data": {
        "regionid": 13,
        "dnoregion": "UKPN South East",
        "shortname": "South East England",
        "postcode": "BN3",

And

{{API_URL}}/regional/intensity/2020-04-27T12:12Z/pt24h/regionid/14

Returns

{
    "data": {
        "regionid": 14,
        "dnoregion": "UKPN South East",
        "shortname": "South East England",

According to the documentation, South East England should be ID 14, would this be an error in the /postcode requests?

alexandrenicol avatar Apr 27 '20 10:04 alexandrenicol