/**
 * Extract the government officials from the civic API response.
 */
function extractOfficials(civicObj) {
  let officials = new Object();
  const levels = ["administrativeArea1", "administrativeArea2", "country", "international", "locality", "regional", "special", "subLocality1", "subLocality2"];
  levels.forEach((level) => {
    officials[level] = new Array();
  });
  civicObj.offices.forEach((officeObj) => {
    const level = officeObj.levels[0];
    // Loop through the officials Indices that work at the current office, and add them to their coresponding level.
    officeObj.officialIndices.forEach((officialIndex) => {
      let official = civicObj.officials[officialIndex];
      official.title = officeObj.name;
      officials[level].push(official);
    });
  });
  return officials;
}

@@ -154,16 +154,21 @@
 vels = %5B
+%0A    
 %22adminis
@@ -181,16 +181,20 @@
 eArea1%22,
+%0A   
  %22admini
@@ -208,16 +208,20 @@
 eArea2%22,
+%0A   
  %22countr
@@ -223,16 +223,20 @@
 ountry%22,
+%0A   
  %22intern
@@ -244,16 +244,20 @@
 tional%22,
+%0A   
  %22locali
@@ -260,16 +260,20 @@
 cality%22,
+%0A   
  %22region
@@ -276,16 +276,20 @@
 gional%22,
+%0A   
  %22specia
@@ -291,16 +291,20 @@
 pecial%22,
+%0A   
  %22subLoc
@@ -311,16 +311,20 @@
 ality1%22,
+%0A   
  %22subLoc
@@ -330,16 +330,20 @@
 cality2%22
+,%0A  
 %5D;%0A  lev

Update civic.js