Inconsistent response for FindAreas with Postcode, LevelTypeId and HierarchyId specified

32 views
Skip to first unread message

Filip Lamparski

unread,
Oct 30, 2013, 9:52:51 AM10/30/13
to ness-data...@googlegroups.com
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>
<FallsWithin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<Area>
<LevelTypeId>13</LevelTypeId>
<HierarchyId>26</HierarchyId>
<AreaId>6275153</AreaId>
<Name>Lewisham</Name>
</Area>
</AreaFallsWithin>

Actual result:

<AreaFallsWithin>
<FallsWithin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<Area>
<LevelTypeId>13</LevelTypeId>
<HierarchyId>26</HierarchyId>
<AreaId>6275153</AreaId>
<Name>Lewisham</Name>
</Area>
</AreaFallsWithin>
<AreaFallsWithin>
<FallsWithin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<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

Frank

unread,
Oct 30, 2013, 4:54:41 PM10/30/13
to ness-data...@googlegroups.com
Hi Filip,
 
it looks like, in addition to returning a response for the 2011 Statistical hierarchy, you are also getting a response for the 2001 Statistical Hierarchy, HierarchyId = 2.
 
We will investigate why this is happening.
 
You could possibly use the SearchSByAByPostcode option (see Technical Implementation Guide para 2.2.26) which mimics the 'Find Statistics for an Area' part of the main Neighbourhood Statistics website and so only works on the most current hierarchy, i.e. 
 
 
Regards
Frank Perry
Neighbourhood Statistics
Reply all
Reply to author
Forward
0 new messages