parameters: (main_city)
return_statement: return {
          'id': main_city.pk,
          'lat': main_city.latitude,
          'lng': main_city.longitude,
          'count': len(MapPointer.objects.filter(location__pk__in=id_list)),
      }
docstring: Creates cluster for given main city (either capital or region capital).
docstring_summary: Creates cluster for given main city (either capital or region capital).
docstring_tokens: Creates cluster for given main city ( either capital or region capital ) .
function: def create_cluster(main_city):
      """ Creates cluster for given main city (either capital or region capital).
      """
      id_list = main_city.parent.get_children_id_list()
      return {
          'id': main_city.pk,
          'lat': main_city.latitude,
          'lng': main_city.longitude,
          'count': len(MapPointer.objects.filter(location__pk__in=id_list)),
      }
function_tokens: def create_cluster ( main_city ) : id_list = main_city . parent . get_children_id_list ( ) return { 'id' : main_city . pk , 'lat' : main_city . latitude , 'lng' : main_city . longitude , 'count' : len ( MapPointer . objects . filter ( location__pk__in = id_list ) ) , }