Forum Discussion

zcomer's avatar
zcomer
Copper Contributor
Aug 04, 2022

Is Address ID Unique?

I am using the Azure Maps Get Search Address API. For each possible match returned, there is a field "id". Here's an example:

{
    "results": [
        { 
          "type": "Geography",
          "id": "US/GEO/p0/89698",
          "score": 4.4519996643,
          "entityType": "PostalCodeArea",
          ...
        }
    ]
}

 

I have tried to learn more about the id returned, but the documentation only describes it as an "id property". Mainly I want to know if I can expect the id to be unique per address. The first two parts of the id come from the country and the address result type. I don't know what the third part is, and the end just looks like an integer generated for the address. So, it appears on the surface that it could be unique, but I need stronger confirmation than that before I rely on it. Does anyone have further information on this id field?

  • Hi zcomer,

     

    The documentation says:

    This states it is basically a pointer to a polygon id. This means it is unique but can change if the polygon changes. Essentially it is unique for the response at that time but can change in future to a new unique value of the new polygon.

     

    Depending on your use case, that might be enough. Unique in the moment but not longer term.

     

    Sincerely,

    IoTGirl

     

Resources