docs: def compile_geo(d):
      """
      Compile top-level Geography dictionary.
      :param d:
      :return:
      """
      logger_excel.info("enter compile_geo")
      d2 = OrderedDict()
  
      # get max number of sites, or number of coordinate points given.
      num_loc = _get_num_locations(d)
  
      # if there's one more than one location put it in a collection
      if num_loc > 1:
          d2["type"] = "FeatureCollection"
          features = []
          for idx in range(0, num_loc):
              # Do process for one site
              site = _parse_geo_locations(d, idx)
              features.append(site)
          d2["features"] = features
  
      # if there's only one location
      elif num_loc == 1:
          d2 = _parse_geo_location(d)
  
      logger_excel.info("exit compile_geo")
      return d2