Open mountainMath opened 3 months ago
Ok, looks like CMHC started splitting up census tracts along municipal boundaries, at least in the translation files they sent me. But this is done inconsistently. When querying data at the metro level with census tract breakdown, they aren't split. But in the new lookup table I got they are split and cause problems when querying the data. For this particular example I get "no data available" when I call it with the individual CMHC census tract ids, as well as with the census tract id for the region that corresponds to the data by metro level.
Of note, selecting specific census tracts on the CMHC web portal is currently disabled, but the (hacky) API calls still work for most CTs. Not sure what's going on here, will have to inquire.
There is an issue with some StatCan CT identifiers appearing twice with different internal CMHC identifiers. For example
gives an error because there are two internal CMHC CTs for this StatCan census tract as can be seen when calling
Not sure what's going on here, will have to check into this in more detail.