There is a BLADE option on the Riding tab that generates a set of riding data that can be used to help generate content for riding profile pages. It is intended to provide a set of data that can be plugged in to a template.
To trigger this Riding Profile output:
In the BLADE module select the Riding tab
In the Riding URL Generator section
select JSON format (or your preferred format)
select a region or All from the region list
select Profile from the Variations drop down list
Click the Generate button
This will generate a url similar to: https://elector.blcloud.net/api/ridingprofile/?json=true
The incumbent fields of the riding object are determined using logic that follows the following rules:
This riding profile result should almost always identify someone as being the incumbent.
If a current candidate is flagged as the incumbent in the system
then use their name and party info
otherwise look for the previous winner
in a by-election in the same riding (if one exists)
in the last general election in same riding
Except when the riding previous party is assigned to the Vacant Party (VAC)
then the incumbent will be blank
If the current incumbent was elected as part of a different party then they are currently running as - the profile will identify them with their current party. As an example in 2018 Belinda Karahalios won as a Progressive Conservative and remained for full term as the PC incumbent. However she is running as a New Blue candidate in the next 2022 election. The profile output in this case will show Belinda as a New Blue incumbent for the Cambridge riding.
Riding Order
The ridings are listed in riding number order. This is usually happens to match alphabetical order in provincial elections but it doesn’t in the Federal elections.
Candidates
There are candidates listed in the results with each riding as well that identify the current candidates. The first candidate will be the incumbent if there is one. The rest of the candidates will be sorted in Party priority order.