Hello,
I have encountered a strange response from the FindAreas call. When asked to fetch an area of specific level type that contains given postcode and exists within given hierarchy, the operation returns that... as well as another Area with the same name and level type, but with a different ID and from a hierarchy I did not ask for.
Using the REST endpoints.
Equivalent to: FindAreas(Postcode = "SE6 4UX", LevelTypeId = 13, HierarchyId = 26)
Expected result:
<AreaFallsWithin>
<Area>
<LevelTypeId>13</LevelTypeId>
<HierarchyId>26</HierarchyId>
<AreaId>6275153</AreaId>
<Name>Lewisham</Name>
</Area>
</AreaFallsWithin>
Actual result:
<AreaFallsWithin>
<Area>
<LevelTypeId>13</LevelTypeId>
<HierarchyId>26</HierarchyId>
<AreaId>6275153</AreaId>
<Name>Lewisham</Name>
</Area>
</AreaFallsWithin>
<AreaFallsWithin>
<Area>
<LevelTypeId>13</LevelTypeId>
<HierarchyId>2</HierarchyId>
<AreaId>276765</AreaId>
<Name>Lewisham</Name>
</Area>
</AreaFallsWithin>
Why is that and can this be fixed, or should I just work around it?
Have a good day!
-- Filip