)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Feature (Ia.TentPlay.Cl.Models.Data.Trek)

Public general use code classes and xml files that we've compiled and used over the years:

Feature Support class for TentPlay entity data

    1: using System;
    2: using System.Collections.Generic;
    3: using System.Linq;
    4: using System.Data;
    5: using Microsoft.EntityFrameworkCore;
    6: using System.IO;
    7: using System.Text.RegularExpressions;
    8: using System.Configuration;
    9: using System.Web;
   10:  
   11: namespace Ia.TentPlay.Cl.Models.Data.Trek
   12: {
   13:     ////////////////////////////////////////////////////////////////////////////
   14:  
   15:     /// <summary publish="true">
   16:     /// Feature Support class for TentPlay entity data
   17:     /// </summary>
   18:     /// 
   19:     /// <remarks> 
   20:     /// Copyright © 2006-2024 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   21:     ///
   22:     /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
   23:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   24:     ///
   25:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   26:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   27:     /// 
   28:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   29:     /// 
   30:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   31:     /// </remarks> 
   32:     public class Feature
   33:     {
   34:         ////////////////////////////////////////////////////////////////////////////
   35:  
   36:         /// <summary>
   37:         ///
   38:         /// </summary>
   39:         public static void DeleteTruncateTableFromDatabase(out Ia.Cl.Models.Result result)
   40:         {
   41:             int count;
   42:             Ia.Cl.Models.Db.SqlServer sqlServer;
   43:  
   44:             result = new Ia.Cl.Models.Result();
   45:             sqlServer = new Ia.Cl.Models.Db.SqlServer(Ia.Cl.Models.ApplicationConfiguration.GetSetting("ConnectionStrings:DefaultConnection"));
   46:  
   47:             count = sqlServer.ScalarInteger("select count(0) from Features");
   48:  
   49:             sqlServer.Truncate("Features");
   50:  
   51:             result.AddSuccess("Deleted row count: " + count + ". ");
   52:  
   53:             /*
   54:             using (var db = new Ia.TentPlay.Db())
   55:             {
   56:                 if (db.Database.Exists())
   57:                 {
   58: 
   59:                     // below: first will delete all current records
   60:                     var all = from c in db.Features select c;
   61:                     db.Features.RemoveRange(all);
   62:                     db.SaveChanges();
   63:                 }
   64: 
   65:                 db.SaveChanges();
   66:             }
   67:             */
   68:         }
   69:  
   70:         ////////////////////////////////////////////////////////////////////////////
   71:  
   72:         /// <summary>
   73:         ///
   74:         /// </summary>
   75:         public static void DownloadAndUnzipAndInsertIntoDatabase(Ia.Cl.Models.Country country, out Ia.Cl.Models.Result result)
   76:         {
   77:             string temporaryPathZipFileExtractDirectory;
   78:  
   79:             result = new Ia.Cl.Models.Result();
   80:  
   81:             if (country != null)
   82:             {
   83:                 Ia.TentPlay.Cl.Models.Business.Trek.Default.DownloadAndExtractNgaGnsNamedCountryZipFile(country.Name, out temporaryPathZipFileExtractDirectory);
   84:  
   85:                 if (Directory.Exists(temporaryPathZipFileExtractDirectory))
   86:                 {
   87:                     var countryFeaturePathFile = temporaryPathZipFileExtractDirectory + @"\" + Ia.TentPlay.Cl.Models.Business.Trek.Default.MappingOfCountryNameToNgaGnsZipFileName(country.Name) + ".txt";
   88:                     // feature file will be C:\Temp\Country 9561\Country.txt in extracted folder
   89:  
   90:                     ProcessCountryFileToFeatureList(country, countryFeaturePathFile, out result);
   91:  
   92:                     Directory.Delete(temporaryPathZipFileExtractDirectory, true);
   93:                 }
   94:                 else
   95:                 {
   96:                     result.AddError("Extracted file does not exist. ");
   97:                 }
   98:             }
   99:             else
  100:             {
  101:                 result.AddError("Could not produce iso3. ");
  102:             }
  103:         }
  104:  
  105:         ////////////////////////////////////////////////////////////////////////////
  106:  
  107:         /// <summary>
  108:         ///
  109:         /// </summary>
  110:         public static void ProcessCountryFileToFeatureList(Ia.Cl.Models.Country country, string file, out Ia.Cl.Models.Result result)
  111:         {
  112:             bool isUsFile;
  113:             int geoNameId, Ufi, Uni, recordCount, storeRecordCount, lineCount;
  114:             string[] fileLines;
  115:             Dictionary<int, Ia.TentPlay.Cl.Models.Business.Trek.Feature> featureDictionary;
  116:             Dictionary<int, bool> uniIsInFeatureNameListDictionary;
  117:             MatchCollection matchCollection;
  118:             FileInfo fileInfo;
  119:             Ia.Cl.Models.Result deleteResult, storeResult, finalStoreResult;
  120:             Ia.Cl.Models.Language language;
  121:             Ia.TentPlay.Cl.Models.Business.Trek.Feature feature;
  122:             Ia.TentPlay.Cl.Models.Business.Trek.FeatureName featureName;
  123:  
  124:             result = new Ia.Cl.Models.Result();
  125:             language = new Ia.Cl.Models.Language();
  126:  
  127:             fileInfo = null;
  128:             var featureFileNameIso3 = country.Iso3;
  129:  
  130:             isUsFile = featureFileNameIso3 == "USA";
  131:  
  132:             if (country != null)
  133:             {
  134:                 Ia.TentPlay.Cl.Models.Data.Trek.Feature.Delete(country, out deleteResult);
  135:  
  136:                 result.AddResult(deleteResult);
  137:  
  138:                 if (!deleteResult.HasError)
  139:                 {
  140:                     if (System.IO.File.Exists(file))
  141:                     {
  142:                         fileInfo = new FileInfo(file);
  143:  
  144:                         recordCount = 0;
  145:                         lineCount = 0;
  146:  
  147:                         featureDictionary = new Dictionary<int, Ia.TentPlay.Cl.Models.Business.Trek.Feature>();
  148:                         uniIsInFeatureNameListDictionary = new Dictionary<int, bool>();
  149:  
  150:                         fileLines = System.IO.File.ReadAllLines(file);
  151:  
  152:                         foreach (string line in fileLines)
  153:                         {
  154:                             lineCount++;
  155:  
  156:                             if (!string.IsNullOrEmpty(line))
  157:                             {
  158:                                 //line += "\t"; // to match the last item
  159:  
  160:                                 if (isUsFile)
  161:                                 {
  162:                                     // USA file only
  163:  
  164:                                     matchCollection = Regex.Matches(line, @"(.*?)\t");
  165:                                     // 2130833    McArthur Reef    McArthur Reef        52.06667    177.86667    U    RFU    US        AK    016            0        -9999    Asia/Kamchatka    2016-07-05
  166:  
  167:                                     // US record don't have multiple feature names for every feature. I will use this to lower pressure on hashtables and avoid an Out of Memory errors.
  168:                                     if (matchCollection.Count > 0)
  169:                                     {
  170:                                         if (int.TryParse(matchCollection[0].Groups[1].Value.Trim(), out geoNameId))
  171:                                         {
  172:                                             feature = new Ia.TentPlay.Cl.Models.Business.Trek.Feature();
  173:                                             //featureName = new Ia.TentPlay.Cl.Model.Business.FeatureName();
  174:                                             //feature.FeatureNames = new List<Ia.TentPlay.Cl.Model.Business.FeatureName>();
  175:  
  176:                                             feature.Ufi = geoNameId;
  177:                                             feature.LatDd = decimal.Parse(matchCollection[4].Groups[1].Value);
  178:                                             feature.LongDd = decimal.Parse(matchCollection[5].Groups[1].Value);
  179:                                             feature.Fc = matchCollection[6].Groups[1].Value;
  180:                                             feature.DesigCd = matchCollection[7].Groups[1].Value;
  181:                                             feature.CcFt = matchCollection[8].Groups[1].Value;
  182:  
  183:                                             //featureName.UNI = geoNameId;
  184:                                             //featureName.FULL_NAME_RO = matchCollection[1].Groups[1].Value;
  185:  
  186:                                             //featureName.Feature = feature; // featureDictionary[geoNameId]; // much faster
  187:  
  188:                                             //if (featureName.Feature != null) featureName.Feature.FeatureNames.Add(featureName);
  189:  
  190:                                             feature.UsFeatureName = matchCollection[1].Groups[1].Value;
  191:  
  192:                                             // ??
  193:                                             feature.UsFeatureNoDiacriticLowerCaseName = matchCollection[2].Groups[1].Value.ToLower(); ;
  194:                                             feature.UsFeatureNativeName = matchCollection[2].Groups[1].Value; ;
  195:  
  196:                                             featureDictionary[feature.Ufi] = feature;
  197:                                         }
  198:                                     }
  199:                                 }
  200:                                 else
  201:                                 {
  202:                                     // other countries' files
  203:  
  204:                                     // rk    ufi         uni            full_name    nt    lat_dd        long_dd        efctv_dt    term_dt_f    term_dt_n    desig_cd    fc    cc_ft    adm1    ft_link    name_rank    lang_cd    transl_cd    script_cd    name_link    cc_nm    generic    full_nm_nd    sort_gen    sort_name    lat_dms    long_dms    mgrs    mod_dt_ft    mod_dt_nm    dialect_cd    display    gis_notes
  205:                                     // 5    -3880422    -5122740    Aranglita    N    32.328889    69.281667                MT    T    AFG,PAK    S1-000        1                    PAK        Aranglita        ARANGLITA    32:19:44    69:16:54    42SWA2651076926    2011-10-18T00:00:00.000Z    1993-09-01T00:00:00.000Z        1,2    
  206:  
  207:                                     matchCollection = Regex.Matches(line, @"(.*?)\t");
  208:  
  209:                                     if (lineCount > 1 && matchCollection.Count > 0)
  210:                                     {
  211:                                         Ufi = int.Parse(matchCollection[1].Groups[1].Value.Trim());
  212:                                         Uni = int.Parse(matchCollection[2].Groups[1].Value.Trim());
  213:  
  214:                                         if (!featureDictionary.ContainsKey(Ufi))
  215:                                         {
  216:                                             feature = new Ia.TentPlay.Cl.Models.Business.Trek.Feature();
  217:                                             feature.Rk = int.Parse(matchCollection[0].Groups[1].Value);
  218:                                             feature.Ufi = Ufi;
  219:                                             feature.LatDd = decimal.Parse(matchCollection[5].Groups[1].Value);
  220:                                             feature.LongDd = decimal.Parse(matchCollection[6].Groups[1].Value);
  221:                                             feature.DesigCd = matchCollection[10].Groups[1].Value;
  222:                                             feature.Fc = matchCollection[11].Groups[1].Value;
  223:                                             feature.CcFt = matchCollection[12].Groups[1].Value;
  224:                                             feature.Adm1 = matchCollection[13].Groups[1].Value;
  225:  
  226:                                             feature.FeatureNames = new List<Ia.TentPlay.Cl.Models.Business.Trek.FeatureName>();
  227:  
  228:                                             featureDictionary[feature.Ufi] = feature;
  229:                                         }
  230:  
  231:                                         if (!uniIsInFeatureNameListDictionary.ContainsKey(Uni))
  232:                                         {
  233:                                             featureName = new Ia.TentPlay.Cl.Models.Business.Trek.FeatureName();
  234:                                             featureName.Uni = Uni;
  235:                                             featureName.Ufi = Ufi;
  236:                                             featureName.FullName = matchCollection[3].Groups[1].Value;
  237:                                             featureName.Nt = matchCollection[4].Groups[1].Value;
  238:                                             //featureName.NameLink = int.Parse(matchCollection[19].Groups[1].Value);
  239:                                             //featureName.CcNm = matchCollection[20].Groups[1].Value;
  240:                                             //featureName.Generic = matchCollection[21].Groups[1].Value;
  241:                                             featureName.FullNameNd = matchCollection[22].Groups[1].Value;
  242:  
  243:                                             featureName.Feature = featureDictionary[Ufi]; // much faster
  244:  
  245:                                             if (featureName.Feature != null) featureName.Feature.FeatureNames.Add(featureName);
  246:  
  247:                                             uniIsInFeatureNameListDictionary[Uni] = true;
  248:                                         }
  249:                                     }
  250:                                 }
  251:                             }
  252:  
  253:                             // below: if we hit n lines count we will clear save into database then clear values, then continue
  254:                             if (lineCount % 100000 == 0)
  255:                             {
  256:                                 ///result.AddSuccess(lineCount + " lines read. ");
  257:  
  258:                                 Store(ref featureDictionary, country, out storeRecordCount, out storeResult);
  259:                                 result.AddResult(storeResult);
  260:  
  261:                                 recordCount += storeRecordCount;
  262:  
  263:                                 featureDictionary.Clear();
  264:                                 uniIsInFeatureNameListDictionary.Clear();
  265:                             }
  266:                         }
  267:  
  268:                         // final store when the function exists
  269:                         Store(ref featureDictionary, country, out storeRecordCount, out finalStoreResult);
  270:  
  271:                         result.AddResult(finalStoreResult);
  272:  
  273:                         recordCount += storeRecordCount;
  274:  
  275:                         if (!result.HasError)
  276:                         {
  277:                             result.AddSuccess(lineCount + " lines read from " + country.Name + ".txt file with " + recordCount + " new record(s) inserted. ");
  278:                         }
  279:                         else result.AddResult(finalStoreResult);
  280:                     }
  281:                     else
  282:                     {
  283:                         result.AddError("File does not exist. ");
  284:                     }
  285:                 }
  286:                 else
  287:                 {
  288:                     result.AddError("Could not delete " + country.Iso3 + " datatable. ");
  289:                 }
  290:             }
  291:             else
  292:             {
  293:                 result.AddError("Country is null for file " + featureFileNameIso3 + ". ");
  294:             }
  295:         }
  296:  
  297:         ////////////////////////////////////////////////////////////////////////////
  298:  
  299:         /// <summary>
  300:         ///
  301:         /// </summary>
  302:         private static void Store(ref Dictionary<int, Ia.TentPlay.Cl.Models.Business.Trek.Feature> featureDictionary, Ia.Cl.Models.Country country, out int recordCount, out Ia.Cl.Models.Result result)
  303:         {
  304:             bool isUsFile;
  305:             string featureNameCountryIso3;
  306:             DataTable dataTable;
  307:             Ia.TentPlay.Cl.Models.Business.Trek.Feature feature;
  308:             Ia.TentPlay.Cl.Models.Business.Trek.FeatureName featureName, featureNativeName;
  309:             Ia.TentPlay.Cl.Models.Trek.Feature feature2;
  310:             Ia.Cl.Models.Db.SqlServer sqlServer;
  311:             Ia.Cl.Models.Geography.Location countryCapitalLocation, trekLocation;
  312:             List<string> allowedFeatureDesignationCodeList, featuresIdList, searchSubstringList;
  313:             List<Ia.TentPlay.Cl.Models.Trek.FeatureDesignation> featureDesignationCodesList;
  314:             List<Ia.TentPlay.Cl.Models.Trek.Feature> countryFeatureList;
  315:  
  316:             result = new Ia.Cl.Models.Result();
  317:             sqlServer = new Ia.Cl.Models.Db.SqlServer(Ia.Cl.Models.ApplicationConfiguration.GetSetting("ConnectionStrings:DefaultConnection"));
  318:             countryFeatureList = new List<Ia.TentPlay.Cl.Models.Trek.Feature>();
  319:  
  320:             countryCapitalLocation = new Ia.Cl.Models.Geography.Location(country.CapitalLatitude, country.CapitalLongitude);
  321:  
  322:             isUsFile = country.Iso3 == "USA";
  323:  
  324:             allowedFeatureDesignationCodeList = Ia.TentPlay.Cl.Models.Business.Trek.Default.AllowedFeatureDesignationList(country.Iso3.ToLower());
  325:  
  326:             using (var db = new Ia.TentPlay.Db())
  327:             {
  328:                 recordCount = 0;
  329:  
  330:                 featureDesignationCodesList = (from nfdc in db.FeatureDesignations select nfdc).ToList();
  331:  
  332:                 if (featureDesignationCodesList.Count != 0)
  333:                 {
  334:                     featuresIdList = (from f in db.Features where f.Country == country.Iso3 select f.Id).ToList();
  335:  
  336:                     foreach (KeyValuePair<int, Ia.TentPlay.Cl.Models.Business.Trek.Feature> kvp in featureDictionary)
  337:                     {
  338:                         feature = kvp.Value;
  339:  
  340:                         if (allowedFeatureDesignationCodeList.Contains(feature.DesigCd))
  341:                         {
  342:                             // below: we loop through all countries in designation
  343:                             string[] cc1CountryList = feature.CcFt.Split(',');
  344:  
  345:                             foreach (string cc1Country in cc1CountryList)
  346:                             {
  347:                                 featureNameCountryIso3 = cc1Country; // Ia.Cl.Models.Country.Iso3FromFips(cc1Country);
  348:  
  349:                                 if (featureNameCountryIso3 != null)
  350:                                 {
  351:                                     featureNameCountryIso3 = featureNameCountryIso3;
  352:  
  353:                                     if (isUsFile)
  354:                                     {
  355:                                         feature2 = new Ia.TentPlay.Cl.Models.Trek.Feature();
  356:  
  357:                                         feature2.Id = country.Iso3 + "." + feature.Ufi.ToString() + "." + featureNameCountryIso3;
  358:                                         feature2.Latitude = (double)feature.LatDd;
  359:                                         feature2.Longitude = (double)feature.LongDd;
  360:  
  361:                                         trekLocation = new Ia.Cl.Models.Geography.Location(feature2.Latitude, feature2.Longitude);
  362:                                         feature2.DistanceToCapital = 0;// (int)countryCapitalLocation.GetDistanceTo(trekLocation);
  363:  
  364:                                         feature2.CMap = Ia.Cl.Models.Geography.Location.ReturnCMapValueForResolutionAndCoordinates(1, (double)feature.LatDd, (double)feature.LongDd);
  365:                                         feature2.Class = feature.Fc.Substring(0, 1); // take only the first letter "A - administrative ..."
  366:                                         feature2.Designation = (from nfdc in featureDesignationCodesList where nfdc.Id == feature.DesigCd select nfdc).SingleOrDefault();
  367:                                         // dataRow["language"] = iso6393;
  368:  
  369:                                         feature2.Country = featureNameCountryIso3;
  370:                                         feature2.FileCountry = country.Iso3;
  371:  
  372:                                         feature2.Name = feature.UsFeatureName;
  373:                                         feature2.NoDiacriticLowerCaseName = Ia.Cl.Models.Language.RemoveNonLatinCharacters(feature.UsFeatureNoDiacriticLowerCaseName);
  374:                                         feature2.NativeName = feature.UsFeatureNativeName;
  375:                                         feature2.NoDiacriticNativeName = Ia.Cl.Models.Language.RemoveDiacritics(feature.UsFeatureNativeName);
  376:  
  377:                                         searchSubstringList = Ia.TentPlay.Cl.Models.Business.Trek.Default.SearchSubstringList(country.Iso3, feature2.NoDiacriticLowerCaseName + " " + feature2.NoDiacriticNativeName);
  378:                                         feature2.FullTextSearchName = string.Join(" ", searchSubstringList);
  379:  
  380:                                         feature2.Deleted = false;
  381:                                         feature2.Created = DateTime.UtcNow.AddHours(3);
  382:                                         feature2.Updated = DateTime.UtcNow.AddHours(3);
  383:  
  384:                                         countryFeatureList.Add(feature2);
  385:                                         recordCount++;
  386:                                     }
  387:                                     else
  388:                                     {
  389:                                         featureName = feature.ProperNameFeature;
  390:                                         featureNativeName = feature.ProperNativeNameFeature;
  391:  
  392:                                         if (featureName != null)
  393:                                         {
  394:                                             feature2 = new Ia.TentPlay.Cl.Models.Trek.Feature();
  395:  
  396:                                             feature2.Id = country.Iso3 + "." + feature.Ufi.ToString() + "." + featureName.Uni + "." + featureNameCountryIso3;
  397:                                             feature2.Latitude = (double)feature.LatDd;
  398:                                             feature2.Longitude = (double)feature.LongDd;
  399:  
  400:                                             trekLocation = new Ia.Cl.Models.Geography.Location(feature2.Latitude, feature2.Longitude);
  401:                                             feature2.DistanceToCapital = 0;// (int)countryCapitalLocation.GetDistanceTo(trekLocation);
  402:  
  403:                                             feature2.CMap = Ia.Cl.Models.Geography.Location.ReturnCMapValueForResolutionAndCoordinates(1, (double)feature.LatDd, (double)feature.LongDd);
  404:                                             feature2.Class = feature.Fc.Substring(0, 1); // take only the first letter "A - administrative ..."
  405:                                             feature2.Designation = (from nfdc in featureDesignationCodesList where nfdc.Id == feature.DesigCd select nfdc).SingleOrDefault();
  406:                                             // dataRow["language"] = iso6393;
  407:  
  408:                                             feature2.Country = featureNameCountryIso3;
  409:                                             feature2.FileCountry = country.Iso3;
  410:  
  411:                                             if (featureName != null)
  412:                                             {
  413:                                                 if (!string.IsNullOrEmpty(featureName.FullName))
  414:                                                 {
  415:                                                     feature2.Name = featureName.FullName;
  416:                                                 }
  417:  
  418:                                                 if (!string.IsNullOrEmpty(featureName.FullNameNd))
  419:                                                 {
  420:                                                     feature2.NoDiacriticLowerCaseName = Ia.Cl.Models.Language.RemoveNonLatinCharacters(featureName.FullNameNd.ToLower());
  421:                                                 }
  422:                                             }
  423:  
  424:                                             if (featureNativeName != null && !string.IsNullOrEmpty(featureNativeName.FullName))
  425:                                             {
  426:                                                 feature2.NativeName = featureNativeName.FullName;
  427:                                                 feature2.NoDiacriticNativeName = Ia.Cl.Models.Language.RemoveDiacritics(feature2.NativeName);
  428:                                             }
  429:  
  430:                                             searchSubstringList = Ia.TentPlay.Cl.Models.Business.Trek.Default.SearchSubstringList(country.Iso3, feature2.NoDiacriticLowerCaseName + " " + feature2.NoDiacriticNativeName);
  431:                                             feature2.FullTextSearchName = string.Join(" ", searchSubstringList);
  432:  
  433:                                             if (feature2.NativeName == null) feature2.NativeName = string.Empty;
  434:                                             if (feature2.NoDiacriticNativeName == null) feature2.NoDiacriticNativeName = string.Empty;
  435:  
  436:                                             feature2.Deleted = false;
  437:                                             feature2.Created = DateTime.UtcNow.AddHours(3);
  438:                                             feature2.Updated = DateTime.UtcNow.AddHours(3);
  439:  
  440:                                             countryFeatureList.Add(feature2);
  441:                                             recordCount++;
  442:                                         }
  443:                                         else
  444:                                         {
  445:                                             result.AddWarning("Feature name for UFI: " + feature.Ufi + " was null. ");
  446:                                         }
  447:                                     }
  448:                                 }
  449:                                 else
  450:                                 {
  451:                                     result.AddWarning("Iso3 for cc1Country: " + cc1Country + " is null. ");
  452:                                 }
  453:                             }
  454:                         }
  455:                         else
  456:                         {
  457:                             result.AddWarning("Feature DSG: " + feature.DesigCd + " not allowed. ");
  458:                         }
  459:                     }
  460:  
  461:                     if (!result.HasError)
  462:                     {
  463:                         dataTable = Ia.Cl.Models.Default.GenerateDataTableFromGenericClassList<Ia.TentPlay.Cl.Models.Trek.Feature>(countryFeatureList, "Features");
  464:  
  465:                         if (!result.HasError)
  466:                         {
  467:                             sqlServer.SqlBulkCopy(dataTable, out result);
  468:                         }
  469:                     }
  470:                     else
  471:                     {
  472:                     }
  473:                 }
  474:                 else
  475:                 {
  476:                     result.AddError("featureDesignationsList.Count == 0.");
  477:                 }
  478:             }
  479:         }
  480:  
  481:         ////////////////////////////////////////////////////////////////////////////
  482:  
  483:         /// <summary>
  484:         ///
  485:         /// </summary>
  486:         public List<Ia.TentPlay.Cl.Models.Trek.Feature> List(out Ia.Cl.Models.Result result)
  487:         {
  488:             List<Ia.TentPlay.Cl.Models.Trek.Feature> list;
  489:  
  490:             result = new Ia.Cl.Models.Result();
  491:  
  492:             using (var db = new Ia.TentPlay.Db())
  493:             {
  494:                 list = (from f in db.Features select f).ToList();
  495:             }
  496:  
  497:             result.AddSuccess("Number of records: " + list.Count);
  498:  
  499:             return list;
  500:         }
  501:  
  502:         ////////////////////////////////////////////////////////////////////////////
  503:  
  504:         /// <summary>
  505:         ///
  506:         /// </summary>
  507:         public static List<Ia.TentPlay.Cl.Models.Trek.Feature> List(string countryIso3, out Ia.Cl.Models.Result result)
  508:         {
  509:             List<Ia.TentPlay.Cl.Models.Trek.Feature> list;
  510:  
  511:             result = new Ia.Cl.Models.Result();
  512:  
  513:             using (var db = new Ia.TentPlay.Db())
  514:             {
  515:                 list = (from f in db.Features.Include(u => u.Designation)
  516:                         where f.FileCountry == countryIso3
  517:                         select f).ToList();
  518:             }
  519:  
  520:             result.AddSuccess("Number of records in " + countryIso3 + " file: " + list.Count);
  521:  
  522:             return list;
  523:         }
  524:  
  525:         ////////////////////////////////////////////////////////////////////////////
  526:  
  527:         /// <summary>
  528:         ///
  529:         /// </summary>
  530:         public static List<Ia.TentPlay.Cl.Models.Trek.Feature> List(Ia.Cl.Models.Country country, int numberOfRecordsToTake, out Ia.Cl.Models.Result result)
  531:         {
  532:             List<Ia.TentPlay.Cl.Models.Trek.Feature> list;
  533:  
  534:             result = new Ia.Cl.Models.Result();
  535:  
  536:             using (var db = new Ia.TentPlay.Db())
  537:             {
  538:                 list = (from f in db.Features.Include(u => u.Designation)
  539:                         where f.FileCountry == country.Iso3
  540:                         select f).Take(numberOfRecordsToTake).ToList();
  541:             }
  542:  
  543:             result.AddSuccess("Number of records in " + country.Name + " file: " + list.Count);
  544:  
  545:             return list;
  546:         }
  547:  
  548:         ////////////////////////////////////////////////////////////////////////////
  549:  
  550:         /// <summary>
  551:         ///
  552:         /// </summary>
  553:         public static List<Ia.TentPlay.Cl.Models.Trek.Feature> Statistic(string countryIso3, out int featureCount, out int administrative, out int populated, out int vegetation, out int locality, out int undersea, out int street, out int hypsographic, out int hydrographic, out int spot, out Ia.Cl.Models.Result result)
  554:         {
  555:             List<Ia.TentPlay.Cl.Models.Trek.Feature> list;
  556:  
  557:             result = new Ia.Cl.Models.Result();
  558:  
  559:             using (var db = new Ia.TentPlay.Db())
  560:             {
  561:                 list = (from f in db.Features.Include(u => u.Designation) where f.FileCountry == countryIso3 select f).ToList();
  562:  
  563:                 featureCount = list.Count;
  564:  
  565:                 administrative = list.Count(u => u.Class == "A");
  566:                 populated = list.Count(u => u.Class == "P");
  567:                 vegetation = list.Count(u => u.Class == "V");
  568:                 locality = list.Count(u => u.Class == "L");
  569:                 undersea = list.Count(u => u.Class == "U");
  570:                 street = list.Count(u => u.Class == "R");
  571:                 hypsographic = list.Count(u => u.Class == "T");
  572:                 hydrographic = list.Count(u => u.Class == "H");
  573:                 spot = list.Count(u => u.Class == "S");
  574:             }
  575:  
  576:             result.AddSuccess("Number of records in " + countryIso3 + " file: " + list.Count);
  577:  
  578:             return list;
  579:         }
  580:  
  581:         /*
  582:         ////////////////////////////////////////////////////////////////////////////
  583:  
  584:         /// <summary>
  585:         ///
  586:         /// </summary>
  587:         public static List<Ia.TentPlay.Cl.Model.Trek.Feature> Search(string fileCountry, string searchTerm, out Ia.Cl.Models.Result result)
  588:         {
  589:             return Search(fileCountry, searchTerm, 999999, out result);
  590:         }
  591:         */
  592:  
  593:         /*
  594:         ////////////////////////////////////////////////////////////////////////////
  595:  
  596:         /// <summary>
  597:         ///
  598:         /// </summary>
  599:         public static List<Ia.TentPlay.Cl.Model.Trek.Feature> Search(string fileCountry, string searchTerm, int numberOfRecordsToTake, out Ia.Cl.Models.Result result)
  600:         {
  601:             List<Ia.TentPlay.Cl.Model.Trek.Feature> list;
  602:  
  603:             result = new Ia.Cl.Models.Result();
  604:  
  605:             using (var db = new Ia.TentPlay.Db())
  606:             {
  607:                 list = (from f in db.Features.Include(u => u.Designation) where f.FileCountry == fileCountry && (f.Name.Contains(searchTerm) || f.NoDiacriticLowerCaseName.Contains(searchTerm)) select f.DistanceToCapital).Take(numberOfRecordsToTake).ToList();
  608:  
  609:                 if (list == null || list.Count == 0)
  610:                 {
  611:                     result.AddWarning("No trek found for \"" + searchTerm + "\". ");
  612:                 }
  613:                 else
  614:                 {
  615:                     result.AddSuccess("Number of treks found: " + list.Count + " for \"" + searchTerm + "\". ");
  616:                 }
  617:             }
  618:  
  619:             return list;
  620:         }
  621:         */
  622:  
  623:         ////////////////////////////////////////////////////////////////////////////
  624:  
  625:         /// <summary>
  626:         ///
  627:         /// </summary>
  628:         public static Ia.TentPlay.Cl.Models.Trek.Feature ById(string id)
  629:         {
  630:             Ia.TentPlay.Cl.Models.Trek.Feature feature;
  631:  
  632:             using (var db = new Ia.TentPlay.Db())
  633:             {
  634:                 feature = (from f in db.Features.Include(u => u.Designation)
  635:                            where f.Id == id
  636:                            select f).SingleOrDefault();
  637:             }
  638:  
  639:             return feature;
  640:         }
  641:  
  642:         ////////////////////////////////////////////////////////////////////////////
  643:  
  644:         /// <summary>
  645:         ///
  646:         /// </summary>
  647:         public static List<Ia.TentPlay.Cl.Models.Trek.Feature> Search(string fileCountry, string searchTerm, int numberOfRecordsToTake, out Ia.Cl.Models.Result result)
  648:         {
  649:             result = new Ia.Cl.Models.Result();
  650:  
  651:             var list = new List<Ia.TentPlay.Cl.Models.Trek.Feature>();
  652:  
  653:             searchTerm = searchTerm.ToLower();
  654:             searchTerm = searchTerm.Trim();
  655:  
  656:             if (!string.IsNullOrEmpty(searchTerm))
  657:             {
  658:                 using (var db = new Ia.TentPlay.Db())
  659:                 {
  660:  
  661:                     if (!string.IsNullOrEmpty(fileCountry))
  662:                     {
  663:                         list = (from f in db.Features.Include(u => u.Designation)
  664:                                 where f.FileCountry == fileCountry && f.NoDiacriticLowerCaseName.Contains(searchTerm)
  665:                                 select f).Take(numberOfRecordsToTake).ToList();
  666:                     }
  667:                     else
  668:                     {
  669:                         list = (from f in db.Features.Include(u => u.Designation)
  670:                                 where f.NoDiacriticLowerCaseName.Contains(searchTerm)
  671:                                 select f).Take(numberOfRecordsToTake).ToList();
  672:                     }
  673:                 }
  674:  
  675:                 result.AddSuccess("Number of records: " + list.Count);
  676:             }
  677:             else
  678:             {
  679:                 result.AddError("Search term is null or empty.");
  680:             }
  681:  
  682:             return list;
  683:         }
  684:  
  685:         ////////////////////////////////////////////////////////////////////////////
  686:  
  687:         /// <summary>
  688:         ///
  689:         /// </summary>
  690:         public static void Delete(Ia.Cl.Models.Country country, out Ia.Cl.Models.Result result)
  691:         {
  692:             int count;
  693:             Ia.Cl.Models.Db.SqlServer sqlServer;
  694:  
  695:             result = new Ia.Cl.Models.Result();
  696:             sqlServer = new Ia.Cl.Models.Db.SqlServer(Ia.Cl.Models.ApplicationConfiguration.GetSetting("ConnectionStrings:DefaultConnection"));
  697:  
  698:             count = sqlServer.ScalarInteger("select count(0) from Features where FileCountry = '" + country.Iso3 + "'");
  699:  
  700:             sqlServer.Sql("delete from Features where FileCountry = '" + country.Iso3 + "'");
  701:  
  702:             result.AddSuccess("Deleted row count (" + country.Name + " (" + country.Iso3 + ")): " + count + ". ");
  703:  
  704:             // below: this is good for EF but too slow
  705:             /*
  706:             try
  707:             {
  708:                 using (var db = new Ia.TentPlay.Db())
  709:                 {
  710:                     var ncwDeletedList = from f in featureList where f.FileCountry == fileCountry select f.DistanceToCapital;
  711: 
  712:                     c = ncwDeletedList.Count();
  713: 
  714:                     db.Features.RemoveRange(ncwDeletedList);
  715:                     db.SaveChanges();
  716: 
  717:                     result.Message = "Features: " + c + " deleted for FileCountry " + fileCountry + ". ";
  718:                 }
  719:             }
  720:             catch (Exception ex)
  721:             {
  722:                 result.AddError(ex.ToString());
  723:             }
  724:             */
  725:         }
  726:  
  727:         ////////////////////////////////////////////////////////////////////////////
  728:  
  729:         /// <summary>
  730:         ///
  731:         /// </summary>
  732:         public List<Ia.TentPlay.Cl.Models.Trek.Feature> UpdatedAfterDateList(DateTime date)
  733:         {
  734:             List<Ia.TentPlay.Cl.Models.Trek.Feature> list;
  735:  
  736:             using (var db = new Ia.TentPlay.Db())
  737:             {
  738:                 list = (from q in db.Features where q.Updated >= date select q).ToList<Ia.TentPlay.Cl.Models.Trek.Feature>();
  739:             }
  740:  
  741:             return list;
  742:         }
  743:  
  744:         ////////////////////////////////////////////////////////////////////////////
  745:  
  746:         /// <summary>
  747:         ///
  748:         /// </summary>
  749:         public List<Ia.TentPlay.Cl.Models.Trek.Feature> ReadByCountryIso3(string countryIso3)
  750:         {
  751:             List<Ia.TentPlay.Cl.Models.Trek.Feature> list;
  752:  
  753:             using (var db = new Ia.TentPlay.Db())
  754:             {
  755:                 list = (from f in db.Features where f.Country == countryIso3 select f).ToList<Ia.TentPlay.Cl.Models.Trek.Feature>();
  756:             }
  757:  
  758:             return list;
  759:         }
  760:  
  761:         ////////////////////////////////////////////////////////////////////////////
  762:  
  763:         /// <summary>
  764:         ///
  765:         /// </summary>
  766:         public List<Ia.TentPlay.Cl.Models.Trek.Feature> ReadyCountryIso3AndUpdatedAfterDateList(string countryIso3, DateTime dateTime)
  767:         {
  768:             List<Ia.TentPlay.Cl.Models.Trek.Feature> list;
  769:  
  770:             using (var db = new Ia.TentPlay.Db())
  771:             {
  772:                 list = (from f in db.Features where f.Country == countryIso3 && f.Updated >= dateTime select f).ToList<Ia.TentPlay.Cl.Models.Trek.Feature>();
  773:             }
  774:  
  775:             return list;
  776:         }
  777:  
  778:         ////////////////////////////////////////////////////////////////////////////
  779:  
  780:         /// <summary>
  781:         ///
  782:         /// </summary>
  783:         public List<Ia.TentPlay.Cl.Models.Trek.Feature> WithinCMapList(string cmap)
  784:         {
  785:             List<Ia.TentPlay.Cl.Models.Trek.Feature> list;
  786:  
  787:             list = null;
  788:  
  789:             if (cmap.Length > 0)
  790:             {
  791:                 using (var db = new Ia.TentPlay.Db())
  792:                 {
  793:                     list = (from q in db.Features where q.CMap.Contains(cmap) select q).ToList<Ia.TentPlay.Cl.Models.Trek.Feature>();
  794:                 }
  795:             }
  796:             else
  797:             {
  798:             }
  799:  
  800:             return list;
  801:         }
  802:  
  803:         ////////////////////////////////////////////////////////////////////////////
  804:  
  805:         /// <summary>
  806:         ///
  807:         /// </summary>
  808:         public static Dictionary<string, string> DistinctFileCountryWithCountList()
  809:         {
  810:             Dictionary<string, string> dictionary = new Dictionary<string, string>();
  811:  
  812:             using (var db = new Ia.TentPlay.Db())
  813:             {
  814:                 var list = (from f in db.Features
  815:                             group f by f.FileCountry into grp
  816:                             select new { CountryName = grp.Key, Count = grp.Count() }).ToList();
  817:  
  818:                 dictionary = list.ToDictionary(
  819:                     f => f.CountryName,
  820:                     f => (from country in Ia.Cl.Models.Country.List where country.Iso3 == f.CountryName select country.Name).SingleOrDefault() + " (" + f.Count.ToString() + ")");
  821:             }
  822:  
  823:             return dictionary;
  824:         }
  825:  
  826:         ////////////////////////////////////////////////////////////////////////////
  827:  
  828:         /// <summary>
  829:         ///
  830:         /// </summary>
  831:         public static List<Ia.Cl.Models.Country> DistinctFileCountryList()
  832:         {
  833:             var list = new List<Ia.Cl.Models.Country>();
  834:  
  835:             using (var db = new Ia.TentPlay.Db())
  836:             {
  837:                 var list0 = (from f in db.Features
  838:                              group f by f.FileCountry
  839:                             into grp
  840:                              select grp.Key).ToList();
  841:  
  842:                 list = (from country in Ia.Cl.Models.Country.List
  843:                         where list0.Contains(country.Iso3)
  844:                         select country).ToList();
  845:             }
  846:  
  847:             return list;
  848:         }
  849:  
  850:         ////////////////////////////////////////////////////////////////////////////
  851:  
  852:         /// <summary>
  853:         ///
  854:         /// </summary>
  855:         public static List<long> DistanceToCapitalOfTheNthFurthestTrekAccordingToBinarySelectedClassesList(string fileCountry, int maximumNumberOfTrekToDisplayNearTheCapitalList)
  856:         {
  857:             List<long> list;
  858:  
  859:             list = new List<long>();
  860:  
  861:             Ia.TentPlay.Cl.Models.Data.Trek.Feature.DistanceToCapitalOfTheNthFurthestTrekAccordingToBinarySelectedClassesList(fileCountry, ref list, Ia.TentPlay.Cl.Models.Business.Trek.Default.MaximumNumberOfTrekToDisplayNearTheCapital);
  862:  
  863:             return list;
  864:         }
  865:  
  866:         ////////////////////////////////////////////////////////////////////////////
  867:  
  868:         /// <summary>
  869:         ///
  870:         /// </summary>
  871:         private static void DistanceToCapitalOfTheNthFurthestTrekAccordingToBinarySelectedClassesList(string fileCountry, ref List<long> list, int maximumNumberOfTrekToDisplayNearTheCapitalList)
  872:         {
  873:             long item;
  874:             List<Ia.TentPlay.Cl.Models.Business.Trek.FeatureClassDistanceToCapital> featureClassDistanceToCapitalList;
  875:  
  876:             using (var db = new Ia.TentPlay.Db())
  877:             {
  878:                 featureClassDistanceToCapitalList = (from ncw in db.Features where ncw.FileCountry == fileCountry select new Ia.TentPlay.Cl.Models.Business.Trek.FeatureClassDistanceToCapital { /*Id = ncw.Id,*/ Class = ncw.Class, DistanceToCapital = ncw.DistanceToCapital, }).ToList();
  879:             }
  880:  
  881:             // code below is generated by code in ca project
  882:  
  883:             // integer: 0, binary: 000000000, string: f.Class == "Z"
  884:             item = (from f in featureClassDistanceToCapitalList where f.Class == "Z" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  885:             if (item != 0) list.Add(item);
  886:             else list.Add(0);
  887:  
  888:             // integer: 1, binary: 000000001, string: f.Class == "S"
  889:             item = (from f in featureClassDistanceToCapitalList where f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  890:             if (item != 0) list.Add(item);
  891:             else list.Add(0);
  892:  
  893:             // integer: 2, binary: 000000010, string: f.Class == "H"
  894:             item = (from f in featureClassDistanceToCapitalList where f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  895:             if (item != 0) list.Add(item);
  896:             else list.Add(0);
  897:  
  898:             // integer: 3, binary: 000000011, string: f.Class == "H" || f.Class == "S"
  899:             item = (from f in featureClassDistanceToCapitalList where f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  900:             if (item != 0) list.Add(item);
  901:             else list.Add(0);
  902:  
  903:             // integer: 4, binary: 000000100, string: f.Class == "T"
  904:             item = (from f in featureClassDistanceToCapitalList where f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  905:             if (item != 0) list.Add(item);
  906:             else list.Add(0);
  907:  
  908:             // integer: 5, binary: 000000101, string: f.Class == "T" || f.Class == "S"
  909:             item = (from f in featureClassDistanceToCapitalList where f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  910:             if (item != 0) list.Add(item);
  911:             else list.Add(0);
  912:  
  913:             // integer: 6, binary: 000000110, string: f.Class == "T" || f.Class == "H"
  914:             item = (from f in featureClassDistanceToCapitalList where f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  915:             if (item != 0) list.Add(item);
  916:             else list.Add(0);
  917:  
  918:             // integer: 7, binary: 000000111, string: f.Class == "T" || f.Class == "H" || f.Class == "S"
  919:             item = (from f in featureClassDistanceToCapitalList where f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  920:             if (item != 0) list.Add(item);
  921:             else list.Add(0);
  922:  
  923:             // integer: 8, binary: 000001000, string: f.Class == "R"
  924:             item = (from f in featureClassDistanceToCapitalList where f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  925:             if (item != 0) list.Add(item);
  926:             else list.Add(0);
  927:  
  928:             // integer: 9, binary: 000001001, string: f.Class == "R" || f.Class == "S"
  929:             item = (from f in featureClassDistanceToCapitalList where f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  930:             if (item != 0) list.Add(item);
  931:             else list.Add(0);
  932:  
  933:             // integer: 10, binary: 000001010, string: f.Class == "R" || f.Class == "H"
  934:             item = (from f in featureClassDistanceToCapitalList where f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  935:             if (item != 0) list.Add(item);
  936:             else list.Add(0);
  937:  
  938:             // integer: 11, binary: 000001011, string: f.Class == "R" || f.Class == "H" || f.Class == "S"
  939:             item = (from f in featureClassDistanceToCapitalList where f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  940:             if (item != 0) list.Add(item);
  941:             else list.Add(0);
  942:  
  943:             // integer: 12, binary: 000001100, string: f.Class == "R" || f.Class == "T"
  944:             item = (from f in featureClassDistanceToCapitalList where f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  945:             if (item != 0) list.Add(item);
  946:             else list.Add(0);
  947:  
  948:             // integer: 13, binary: 000001101, string: f.Class == "R" || f.Class == "T" || f.Class == "S"
  949:             item = (from f in featureClassDistanceToCapitalList where f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  950:             if (item != 0) list.Add(item);
  951:             else list.Add(0);
  952:  
  953:             // integer: 14, binary: 000001110, string: f.Class == "R" || f.Class == "T" || f.Class == "H"
  954:             item = (from f in featureClassDistanceToCapitalList where f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  955:             if (item != 0) list.Add(item);
  956:             else list.Add(0);
  957:  
  958:             // integer: 15, binary: 000001111, string: f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
  959:             item = (from f in featureClassDistanceToCapitalList where f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  960:             if (item != 0) list.Add(item);
  961:             else list.Add(0);
  962:  
  963:             // integer: 16, binary: 000010000, string: f.Class == "U"
  964:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  965:             if (item != 0) list.Add(item);
  966:             else list.Add(0);
  967:  
  968:             // integer: 17, binary: 000010001, string: f.Class == "U" || f.Class == "S"
  969:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  970:             if (item != 0) list.Add(item);
  971:             else list.Add(0);
  972:  
  973:             // integer: 18, binary: 000010010, string: f.Class == "U" || f.Class == "H"
  974:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  975:             if (item != 0) list.Add(item);
  976:             else list.Add(0);
  977:  
  978:             // integer: 19, binary: 000010011, string: f.Class == "U" || f.Class == "H" || f.Class == "S"
  979:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  980:             if (item != 0) list.Add(item);
  981:             else list.Add(0);
  982:  
  983:             // integer: 20, binary: 000010100, string: f.Class == "U" || f.Class == "T"
  984:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  985:             if (item != 0) list.Add(item);
  986:             else list.Add(0);
  987:  
  988:             // integer: 21, binary: 000010101, string: f.Class == "U" || f.Class == "T" || f.Class == "S"
  989:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  990:             if (item != 0) list.Add(item);
  991:             else list.Add(0);
  992:  
  993:             // integer: 22, binary: 000010110, string: f.Class == "U" || f.Class == "T" || f.Class == "H"
  994:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
  995:             if (item != 0) list.Add(item);
  996:             else list.Add(0);
  997:  
  998:             // integer: 23, binary: 000010111, string: f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
  999:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1000:             if (item != 0) list.Add(item);
 1001:             else list.Add(0);
 1002:  
 1003:             // integer: 24, binary: 000011000, string: f.Class == "U" || f.Class == "R"
 1004:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1005:             if (item != 0) list.Add(item);
 1006:             else list.Add(0);
 1007:  
 1008:             // integer: 25, binary: 000011001, string: f.Class == "U" || f.Class == "R" || f.Class == "S"
 1009:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1010:             if (item != 0) list.Add(item);
 1011:             else list.Add(0);
 1012:  
 1013:             // integer: 26, binary: 000011010, string: f.Class == "U" || f.Class == "R" || f.Class == "H"
 1014:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1015:             if (item != 0) list.Add(item);
 1016:             else list.Add(0);
 1017:  
 1018:             // integer: 27, binary: 000011011, string: f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1019:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1020:             if (item != 0) list.Add(item);
 1021:             else list.Add(0);
 1022:  
 1023:             // integer: 28, binary: 000011100, string: f.Class == "U" || f.Class == "R" || f.Class == "T"
 1024:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1025:             if (item != 0) list.Add(item);
 1026:             else list.Add(0);
 1027:  
 1028:             // integer: 29, binary: 000011101, string: f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1029:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1030:             if (item != 0) list.Add(item);
 1031:             else list.Add(0);
 1032:  
 1033:             // integer: 30, binary: 000011110, string: f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1034:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1035:             if (item != 0) list.Add(item);
 1036:             else list.Add(0);
 1037:  
 1038:             // integer: 31, binary: 000011111, string: f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1039:             item = (from f in featureClassDistanceToCapitalList where f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1040:             if (item != 0) list.Add(item);
 1041:             else list.Add(0);
 1042:  
 1043:             // integer: 32, binary: 000100000, string: f.Class == "L"
 1044:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1045:             if (item != 0) list.Add(item);
 1046:             else list.Add(0);
 1047:  
 1048:             // integer: 33, binary: 000100001, string: f.Class == "L" || f.Class == "S"
 1049:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1050:             if (item != 0) list.Add(item);
 1051:             else list.Add(0);
 1052:  
 1053:             // integer: 34, binary: 000100010, string: f.Class == "L" || f.Class == "H"
 1054:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1055:             if (item != 0) list.Add(item);
 1056:             else list.Add(0);
 1057:  
 1058:             // integer: 35, binary: 000100011, string: f.Class == "L" || f.Class == "H" || f.Class == "S"
 1059:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1060:             if (item != 0) list.Add(item);
 1061:             else list.Add(0);
 1062:  
 1063:             // integer: 36, binary: 000100100, string: f.Class == "L" || f.Class == "T"
 1064:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1065:             if (item != 0) list.Add(item);
 1066:             else list.Add(0);
 1067:  
 1068:             // integer: 37, binary: 000100101, string: f.Class == "L" || f.Class == "T" || f.Class == "S"
 1069:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1070:             if (item != 0) list.Add(item);
 1071:             else list.Add(0);
 1072:  
 1073:             // integer: 38, binary: 000100110, string: f.Class == "L" || f.Class == "T" || f.Class == "H"
 1074:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1075:             if (item != 0) list.Add(item);
 1076:             else list.Add(0);
 1077:  
 1078:             // integer: 39, binary: 000100111, string: f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1079:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1080:             if (item != 0) list.Add(item);
 1081:             else list.Add(0);
 1082:  
 1083:             // integer: 40, binary: 000101000, string: f.Class == "L" || f.Class == "R"
 1084:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1085:             if (item != 0) list.Add(item);
 1086:             else list.Add(0);
 1087:  
 1088:             // integer: 41, binary: 000101001, string: f.Class == "L" || f.Class == "R" || f.Class == "S"
 1089:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1090:             if (item != 0) list.Add(item);
 1091:             else list.Add(0);
 1092:  
 1093:             // integer: 42, binary: 000101010, string: f.Class == "L" || f.Class == "R" || f.Class == "H"
 1094:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1095:             if (item != 0) list.Add(item);
 1096:             else list.Add(0);
 1097:  
 1098:             // integer: 43, binary: 000101011, string: f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1099:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1100:             if (item != 0) list.Add(item);
 1101:             else list.Add(0);
 1102:  
 1103:             // integer: 44, binary: 000101100, string: f.Class == "L" || f.Class == "R" || f.Class == "T"
 1104:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1105:             if (item != 0) list.Add(item);
 1106:             else list.Add(0);
 1107:  
 1108:             // integer: 45, binary: 000101101, string: f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1109:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1110:             if (item != 0) list.Add(item);
 1111:             else list.Add(0);
 1112:  
 1113:             // integer: 46, binary: 000101110, string: f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1114:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1115:             if (item != 0) list.Add(item);
 1116:             else list.Add(0);
 1117:  
 1118:             // integer: 47, binary: 000101111, string: f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1119:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1120:             if (item != 0) list.Add(item);
 1121:             else list.Add(0);
 1122:  
 1123:             // integer: 48, binary: 000110000, string: f.Class == "L" || f.Class == "U"
 1124:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1125:             if (item != 0) list.Add(item);
 1126:             else list.Add(0);
 1127:  
 1128:             // integer: 49, binary: 000110001, string: f.Class == "L" || f.Class == "U" || f.Class == "S"
 1129:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1130:             if (item != 0) list.Add(item);
 1131:             else list.Add(0);
 1132:  
 1133:             // integer: 50, binary: 000110010, string: f.Class == "L" || f.Class == "U" || f.Class == "H"
 1134:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1135:             if (item != 0) list.Add(item);
 1136:             else list.Add(0);
 1137:  
 1138:             // integer: 51, binary: 000110011, string: f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 1139:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1140:             if (item != 0) list.Add(item);
 1141:             else list.Add(0);
 1142:  
 1143:             // integer: 52, binary: 000110100, string: f.Class == "L" || f.Class == "U" || f.Class == "T"
 1144:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1145:             if (item != 0) list.Add(item);
 1146:             else list.Add(0);
 1147:  
 1148:             // integer: 53, binary: 000110101, string: f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 1149:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1150:             if (item != 0) list.Add(item);
 1151:             else list.Add(0);
 1152:  
 1153:             // integer: 54, binary: 000110110, string: f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 1154:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1155:             if (item != 0) list.Add(item);
 1156:             else list.Add(0);
 1157:  
 1158:             // integer: 55, binary: 000110111, string: f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1159:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1160:             if (item != 0) list.Add(item);
 1161:             else list.Add(0);
 1162:  
 1163:             // integer: 56, binary: 000111000, string: f.Class == "L" || f.Class == "U" || f.Class == "R"
 1164:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1165:             if (item != 0) list.Add(item);
 1166:             else list.Add(0);
 1167:  
 1168:             // integer: 57, binary: 000111001, string: f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 1169:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1170:             if (item != 0) list.Add(item);
 1171:             else list.Add(0);
 1172:  
 1173:             // integer: 58, binary: 000111010, string: f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 1174:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1175:             if (item != 0) list.Add(item);
 1176:             else list.Add(0);
 1177:  
 1178:             // integer: 59, binary: 000111011, string: f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1179:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1180:             if (item != 0) list.Add(item);
 1181:             else list.Add(0);
 1182:  
 1183:             // integer: 60, binary: 000111100, string: f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 1184:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1185:             if (item != 0) list.Add(item);
 1186:             else list.Add(0);
 1187:  
 1188:             // integer: 61, binary: 000111101, string: f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1189:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1190:             if (item != 0) list.Add(item);
 1191:             else list.Add(0);
 1192:  
 1193:             // integer: 62, binary: 000111110, string: f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1194:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1195:             if (item != 0) list.Add(item);
 1196:             else list.Add(0);
 1197:  
 1198:             // integer: 63, binary: 000111111, string: f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1199:             item = (from f in featureClassDistanceToCapitalList where f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1200:             if (item != 0) list.Add(item);
 1201:             else list.Add(0);
 1202:  
 1203:             // integer: 64, binary: 001000000, string: f.Class == "V"
 1204:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1205:             if (item != 0) list.Add(item);
 1206:             else list.Add(0);
 1207:  
 1208:             // integer: 65, binary: 001000001, string: f.Class == "V" || f.Class == "S"
 1209:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1210:             if (item != 0) list.Add(item);
 1211:             else list.Add(0);
 1212:  
 1213:             // integer: 66, binary: 001000010, string: f.Class == "V" || f.Class == "H"
 1214:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1215:             if (item != 0) list.Add(item);
 1216:             else list.Add(0);
 1217:  
 1218:             // integer: 67, binary: 001000011, string: f.Class == "V" || f.Class == "H" || f.Class == "S"
 1219:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1220:             if (item != 0) list.Add(item);
 1221:             else list.Add(0);
 1222:  
 1223:             // integer: 68, binary: 001000100, string: f.Class == "V" || f.Class == "T"
 1224:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1225:             if (item != 0) list.Add(item);
 1226:             else list.Add(0);
 1227:  
 1228:             // integer: 69, binary: 001000101, string: f.Class == "V" || f.Class == "T" || f.Class == "S"
 1229:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1230:             if (item != 0) list.Add(item);
 1231:             else list.Add(0);
 1232:  
 1233:             // integer: 70, binary: 001000110, string: f.Class == "V" || f.Class == "T" || f.Class == "H"
 1234:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1235:             if (item != 0) list.Add(item);
 1236:             else list.Add(0);
 1237:  
 1238:             // integer: 71, binary: 001000111, string: f.Class == "V" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1239:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1240:             if (item != 0) list.Add(item);
 1241:             else list.Add(0);
 1242:  
 1243:             // integer: 72, binary: 001001000, string: f.Class == "V" || f.Class == "R"
 1244:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1245:             if (item != 0) list.Add(item);
 1246:             else list.Add(0);
 1247:  
 1248:             // integer: 73, binary: 001001001, string: f.Class == "V" || f.Class == "R" || f.Class == "S"
 1249:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1250:             if (item != 0) list.Add(item);
 1251:             else list.Add(0);
 1252:  
 1253:             // integer: 74, binary: 001001010, string: f.Class == "V" || f.Class == "R" || f.Class == "H"
 1254:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1255:             if (item != 0) list.Add(item);
 1256:             else list.Add(0);
 1257:  
 1258:             // integer: 75, binary: 001001011, string: f.Class == "V" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1259:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1260:             if (item != 0) list.Add(item);
 1261:             else list.Add(0);
 1262:  
 1263:             // integer: 76, binary: 001001100, string: f.Class == "V" || f.Class == "R" || f.Class == "T"
 1264:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1265:             if (item != 0) list.Add(item);
 1266:             else list.Add(0);
 1267:  
 1268:             // integer: 77, binary: 001001101, string: f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1269:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1270:             if (item != 0) list.Add(item);
 1271:             else list.Add(0);
 1272:  
 1273:             // integer: 78, binary: 001001110, string: f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1274:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1275:             if (item != 0) list.Add(item);
 1276:             else list.Add(0);
 1277:  
 1278:             // integer: 79, binary: 001001111, string: f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1279:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1280:             if (item != 0) list.Add(item);
 1281:             else list.Add(0);
 1282:  
 1283:             // integer: 80, binary: 001010000, string: f.Class == "V" || f.Class == "U"
 1284:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1285:             if (item != 0) list.Add(item);
 1286:             else list.Add(0);
 1287:  
 1288:             // integer: 81, binary: 001010001, string: f.Class == "V" || f.Class == "U" || f.Class == "S"
 1289:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1290:             if (item != 0) list.Add(item);
 1291:             else list.Add(0);
 1292:  
 1293:             // integer: 82, binary: 001010010, string: f.Class == "V" || f.Class == "U" || f.Class == "H"
 1294:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1295:             if (item != 0) list.Add(item);
 1296:             else list.Add(0);
 1297:  
 1298:             // integer: 83, binary: 001010011, string: f.Class == "V" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 1299:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1300:             if (item != 0) list.Add(item);
 1301:             else list.Add(0);
 1302:  
 1303:             // integer: 84, binary: 001010100, string: f.Class == "V" || f.Class == "U" || f.Class == "T"
 1304:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1305:             if (item != 0) list.Add(item);
 1306:             else list.Add(0);
 1307:  
 1308:             // integer: 85, binary: 001010101, string: f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 1309:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1310:             if (item != 0) list.Add(item);
 1311:             else list.Add(0);
 1312:  
 1313:             // integer: 86, binary: 001010110, string: f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 1314:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1315:             if (item != 0) list.Add(item);
 1316:             else list.Add(0);
 1317:  
 1318:             // integer: 87, binary: 001010111, string: f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1319:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1320:             if (item != 0) list.Add(item);
 1321:             else list.Add(0);
 1322:  
 1323:             // integer: 88, binary: 001011000, string: f.Class == "V" || f.Class == "U" || f.Class == "R"
 1324:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1325:             if (item != 0) list.Add(item);
 1326:             else list.Add(0);
 1327:  
 1328:             // integer: 89, binary: 001011001, string: f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 1329:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1330:             if (item != 0) list.Add(item);
 1331:             else list.Add(0);
 1332:  
 1333:             // integer: 90, binary: 001011010, string: f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 1334:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1335:             if (item != 0) list.Add(item);
 1336:             else list.Add(0);
 1337:  
 1338:             // integer: 91, binary: 001011011, string: f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1339:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1340:             if (item != 0) list.Add(item);
 1341:             else list.Add(0);
 1342:  
 1343:             // integer: 92, binary: 001011100, string: f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 1344:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1345:             if (item != 0) list.Add(item);
 1346:             else list.Add(0);
 1347:  
 1348:             // integer: 93, binary: 001011101, string: f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1349:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1350:             if (item != 0) list.Add(item);
 1351:             else list.Add(0);
 1352:  
 1353:             // integer: 94, binary: 001011110, string: f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1354:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1355:             if (item != 0) list.Add(item);
 1356:             else list.Add(0);
 1357:  
 1358:             // integer: 95, binary: 001011111, string: f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1359:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1360:             if (item != 0) list.Add(item);
 1361:             else list.Add(0);
 1362:  
 1363:             // integer: 96, binary: 001100000, string: f.Class == "V" || f.Class == "L"
 1364:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1365:             if (item != 0) list.Add(item);
 1366:             else list.Add(0);
 1367:  
 1368:             // integer: 97, binary: 001100001, string: f.Class == "V" || f.Class == "L" || f.Class == "S"
 1369:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1370:             if (item != 0) list.Add(item);
 1371:             else list.Add(0);
 1372:  
 1373:             // integer: 98, binary: 001100010, string: f.Class == "V" || f.Class == "L" || f.Class == "H"
 1374:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1375:             if (item != 0) list.Add(item);
 1376:             else list.Add(0);
 1377:  
 1378:             // integer: 99, binary: 001100011, string: f.Class == "V" || f.Class == "L" || f.Class == "H" || f.Class == "S"
 1379:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1380:             if (item != 0) list.Add(item);
 1381:             else list.Add(0);
 1382:  
 1383:             // integer: 100, binary: 001100100, string: f.Class == "V" || f.Class == "L" || f.Class == "T"
 1384:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1385:             if (item != 0) list.Add(item);
 1386:             else list.Add(0);
 1387:  
 1388:             // integer: 101, binary: 001100101, string: f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "S"
 1389:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1390:             if (item != 0) list.Add(item);
 1391:             else list.Add(0);
 1392:  
 1393:             // integer: 102, binary: 001100110, string: f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H"
 1394:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1395:             if (item != 0) list.Add(item);
 1396:             else list.Add(0);
 1397:  
 1398:             // integer: 103, binary: 001100111, string: f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1399:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1400:             if (item != 0) list.Add(item);
 1401:             else list.Add(0);
 1402:  
 1403:             // integer: 104, binary: 001101000, string: f.Class == "V" || f.Class == "L" || f.Class == "R"
 1404:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1405:             if (item != 0) list.Add(item);
 1406:             else list.Add(0);
 1407:  
 1408:             // integer: 105, binary: 001101001, string: f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "S"
 1409:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1410:             if (item != 0) list.Add(item);
 1411:             else list.Add(0);
 1412:  
 1413:             // integer: 106, binary: 001101010, string: f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H"
 1414:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1415:             if (item != 0) list.Add(item);
 1416:             else list.Add(0);
 1417:  
 1418:             // integer: 107, binary: 001101011, string: f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1419:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1420:             if (item != 0) list.Add(item);
 1421:             else list.Add(0);
 1422:  
 1423:             // integer: 108, binary: 001101100, string: f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T"
 1424:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1425:             if (item != 0) list.Add(item);
 1426:             else list.Add(0);
 1427:  
 1428:             // integer: 109, binary: 001101101, string: f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1429:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1430:             if (item != 0) list.Add(item);
 1431:             else list.Add(0);
 1432:  
 1433:             // integer: 110, binary: 001101110, string: f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1434:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1435:             if (item != 0) list.Add(item);
 1436:             else list.Add(0);
 1437:  
 1438:             // integer: 111, binary: 001101111, string: f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1439:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1440:             if (item != 0) list.Add(item);
 1441:             else list.Add(0);
 1442:  
 1443:             // integer: 112, binary: 001110000, string: f.Class == "V" || f.Class == "L" || f.Class == "U"
 1444:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1445:             if (item != 0) list.Add(item);
 1446:             else list.Add(0);
 1447:  
 1448:             // integer: 113, binary: 001110001, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "S"
 1449:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1450:             if (item != 0) list.Add(item);
 1451:             else list.Add(0);
 1452:  
 1453:             // integer: 114, binary: 001110010, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H"
 1454:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1455:             if (item != 0) list.Add(item);
 1456:             else list.Add(0);
 1457:  
 1458:             // integer: 115, binary: 001110011, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 1459:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1460:             if (item != 0) list.Add(item);
 1461:             else list.Add(0);
 1462:  
 1463:             // integer: 116, binary: 001110100, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T"
 1464:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1465:             if (item != 0) list.Add(item);
 1466:             else list.Add(0);
 1467:  
 1468:             // integer: 117, binary: 001110101, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 1469:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1470:             if (item != 0) list.Add(item);
 1471:             else list.Add(0);
 1472:  
 1473:             // integer: 118, binary: 001110110, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 1474:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1475:             if (item != 0) list.Add(item);
 1476:             else list.Add(0);
 1477:  
 1478:             // integer: 119, binary: 001110111, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1479:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1480:             if (item != 0) list.Add(item);
 1481:             else list.Add(0);
 1482:  
 1483:             // integer: 120, binary: 001111000, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R"
 1484:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1485:             if (item != 0) list.Add(item);
 1486:             else list.Add(0);
 1487:  
 1488:             // integer: 121, binary: 001111001, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 1489:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1490:             if (item != 0) list.Add(item);
 1491:             else list.Add(0);
 1492:  
 1493:             // integer: 122, binary: 001111010, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 1494:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1495:             if (item != 0) list.Add(item);
 1496:             else list.Add(0);
 1497:  
 1498:             // integer: 123, binary: 001111011, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1499:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1500:             if (item != 0) list.Add(item);
 1501:             else list.Add(0);
 1502:  
 1503:             // integer: 124, binary: 001111100, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 1504:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1505:             if (item != 0) list.Add(item);
 1506:             else list.Add(0);
 1507:  
 1508:             // integer: 125, binary: 001111101, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1509:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1510:             if (item != 0) list.Add(item);
 1511:             else list.Add(0);
 1512:  
 1513:             // integer: 126, binary: 001111110, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1514:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1515:             if (item != 0) list.Add(item);
 1516:             else list.Add(0);
 1517:  
 1518:             // integer: 127, binary: 001111111, string: f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1519:             item = (from f in featureClassDistanceToCapitalList where f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1520:             if (item != 0) list.Add(item);
 1521:             else list.Add(0);
 1522:  
 1523:             // integer: 128, binary: 010000000, string: f.Class == "P"
 1524:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1525:             if (item != 0) list.Add(item);
 1526:             else list.Add(0);
 1527:  
 1528:             // integer: 129, binary: 010000001, string: f.Class == "P" || f.Class == "S"
 1529:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1530:             if (item != 0) list.Add(item);
 1531:             else list.Add(0);
 1532:  
 1533:             // integer: 130, binary: 010000010, string: f.Class == "P" || f.Class == "H"
 1534:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1535:             if (item != 0) list.Add(item);
 1536:             else list.Add(0);
 1537:  
 1538:             // integer: 131, binary: 010000011, string: f.Class == "P" || f.Class == "H" || f.Class == "S"
 1539:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1540:             if (item != 0) list.Add(item);
 1541:             else list.Add(0);
 1542:  
 1543:             // integer: 132, binary: 010000100, string: f.Class == "P" || f.Class == "T"
 1544:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1545:             if (item != 0) list.Add(item);
 1546:             else list.Add(0);
 1547:  
 1548:             // integer: 133, binary: 010000101, string: f.Class == "P" || f.Class == "T" || f.Class == "S"
 1549:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1550:             if (item != 0) list.Add(item);
 1551:             else list.Add(0);
 1552:  
 1553:             // integer: 134, binary: 010000110, string: f.Class == "P" || f.Class == "T" || f.Class == "H"
 1554:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1555:             if (item != 0) list.Add(item);
 1556:             else list.Add(0);
 1557:  
 1558:             // integer: 135, binary: 010000111, string: f.Class == "P" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1559:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1560:             if (item != 0) list.Add(item);
 1561:             else list.Add(0);
 1562:  
 1563:             // integer: 136, binary: 010001000, string: f.Class == "P" || f.Class == "R"
 1564:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1565:             if (item != 0) list.Add(item);
 1566:             else list.Add(0);
 1567:  
 1568:             // integer: 137, binary: 010001001, string: f.Class == "P" || f.Class == "R" || f.Class == "S"
 1569:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1570:             if (item != 0) list.Add(item);
 1571:             else list.Add(0);
 1572:  
 1573:             // integer: 138, binary: 010001010, string: f.Class == "P" || f.Class == "R" || f.Class == "H"
 1574:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1575:             if (item != 0) list.Add(item);
 1576:             else list.Add(0);
 1577:  
 1578:             // integer: 139, binary: 010001011, string: f.Class == "P" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1579:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1580:             if (item != 0) list.Add(item);
 1581:             else list.Add(0);
 1582:  
 1583:             // integer: 140, binary: 010001100, string: f.Class == "P" || f.Class == "R" || f.Class == "T"
 1584:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1585:             if (item != 0) list.Add(item);
 1586:             else list.Add(0);
 1587:  
 1588:             // integer: 141, binary: 010001101, string: f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1589:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1590:             if (item != 0) list.Add(item);
 1591:             else list.Add(0);
 1592:  
 1593:             // integer: 142, binary: 010001110, string: f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1594:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1595:             if (item != 0) list.Add(item);
 1596:             else list.Add(0);
 1597:  
 1598:             // integer: 143, binary: 010001111, string: f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1599:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1600:             if (item != 0) list.Add(item);
 1601:             else list.Add(0);
 1602:  
 1603:             // integer: 144, binary: 010010000, string: f.Class == "P" || f.Class == "U"
 1604:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1605:             if (item != 0) list.Add(item);
 1606:             else list.Add(0);
 1607:  
 1608:             // integer: 145, binary: 010010001, string: f.Class == "P" || f.Class == "U" || f.Class == "S"
 1609:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1610:             if (item != 0) list.Add(item);
 1611:             else list.Add(0);
 1612:  
 1613:             // integer: 146, binary: 010010010, string: f.Class == "P" || f.Class == "U" || f.Class == "H"
 1614:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1615:             if (item != 0) list.Add(item);
 1616:             else list.Add(0);
 1617:  
 1618:             // integer: 147, binary: 010010011, string: f.Class == "P" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 1619:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1620:             if (item != 0) list.Add(item);
 1621:             else list.Add(0);
 1622:  
 1623:             // integer: 148, binary: 010010100, string: f.Class == "P" || f.Class == "U" || f.Class == "T"
 1624:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1625:             if (item != 0) list.Add(item);
 1626:             else list.Add(0);
 1627:  
 1628:             // integer: 149, binary: 010010101, string: f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 1629:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1630:             if (item != 0) list.Add(item);
 1631:             else list.Add(0);
 1632:  
 1633:             // integer: 150, binary: 010010110, string: f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 1634:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1635:             if (item != 0) list.Add(item);
 1636:             else list.Add(0);
 1637:  
 1638:             // integer: 151, binary: 010010111, string: f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1639:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1640:             if (item != 0) list.Add(item);
 1641:             else list.Add(0);
 1642:  
 1643:             // integer: 152, binary: 010011000, string: f.Class == "P" || f.Class == "U" || f.Class == "R"
 1644:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1645:             if (item != 0) list.Add(item);
 1646:             else list.Add(0);
 1647:  
 1648:             // integer: 153, binary: 010011001, string: f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 1649:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1650:             if (item != 0) list.Add(item);
 1651:             else list.Add(0);
 1652:  
 1653:             // integer: 154, binary: 010011010, string: f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 1654:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1655:             if (item != 0) list.Add(item);
 1656:             else list.Add(0);
 1657:  
 1658:             // integer: 155, binary: 010011011, string: f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1659:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1660:             if (item != 0) list.Add(item);
 1661:             else list.Add(0);
 1662:  
 1663:             // integer: 156, binary: 010011100, string: f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 1664:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1665:             if (item != 0) list.Add(item);
 1666:             else list.Add(0);
 1667:  
 1668:             // integer: 157, binary: 010011101, string: f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1669:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1670:             if (item != 0) list.Add(item);
 1671:             else list.Add(0);
 1672:  
 1673:             // integer: 158, binary: 010011110, string: f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1674:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1675:             if (item != 0) list.Add(item);
 1676:             else list.Add(0);
 1677:  
 1678:             // integer: 159, binary: 010011111, string: f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1679:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1680:             if (item != 0) list.Add(item);
 1681:             else list.Add(0);
 1682:  
 1683:             // integer: 160, binary: 010100000, string: f.Class == "P" || f.Class == "L"
 1684:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1685:             if (item != 0) list.Add(item);
 1686:             else list.Add(0);
 1687:  
 1688:             // integer: 161, binary: 010100001, string: f.Class == "P" || f.Class == "L" || f.Class == "S"
 1689:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1690:             if (item != 0) list.Add(item);
 1691:             else list.Add(0);
 1692:  
 1693:             // integer: 162, binary: 010100010, string: f.Class == "P" || f.Class == "L" || f.Class == "H"
 1694:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1695:             if (item != 0) list.Add(item);
 1696:             else list.Add(0);
 1697:  
 1698:             // integer: 163, binary: 010100011, string: f.Class == "P" || f.Class == "L" || f.Class == "H" || f.Class == "S"
 1699:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1700:             if (item != 0) list.Add(item);
 1701:             else list.Add(0);
 1702:  
 1703:             // integer: 164, binary: 010100100, string: f.Class == "P" || f.Class == "L" || f.Class == "T"
 1704:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1705:             if (item != 0) list.Add(item);
 1706:             else list.Add(0);
 1707:  
 1708:             // integer: 165, binary: 010100101, string: f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "S"
 1709:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1710:             if (item != 0) list.Add(item);
 1711:             else list.Add(0);
 1712:  
 1713:             // integer: 166, binary: 010100110, string: f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "H"
 1714:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1715:             if (item != 0) list.Add(item);
 1716:             else list.Add(0);
 1717:  
 1718:             // integer: 167, binary: 010100111, string: f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1719:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1720:             if (item != 0) list.Add(item);
 1721:             else list.Add(0);
 1722:  
 1723:             // integer: 168, binary: 010101000, string: f.Class == "P" || f.Class == "L" || f.Class == "R"
 1724:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1725:             if (item != 0) list.Add(item);
 1726:             else list.Add(0);
 1727:  
 1728:             // integer: 169, binary: 010101001, string: f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "S"
 1729:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1730:             if (item != 0) list.Add(item);
 1731:             else list.Add(0);
 1732:  
 1733:             // integer: 170, binary: 010101010, string: f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "H"
 1734:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1735:             if (item != 0) list.Add(item);
 1736:             else list.Add(0);
 1737:  
 1738:             // integer: 171, binary: 010101011, string: f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1739:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1740:             if (item != 0) list.Add(item);
 1741:             else list.Add(0);
 1742:  
 1743:             // integer: 172, binary: 010101100, string: f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T"
 1744:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1745:             if (item != 0) list.Add(item);
 1746:             else list.Add(0);
 1747:  
 1748:             // integer: 173, binary: 010101101, string: f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1749:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1750:             if (item != 0) list.Add(item);
 1751:             else list.Add(0);
 1752:  
 1753:             // integer: 174, binary: 010101110, string: f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1754:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1755:             if (item != 0) list.Add(item);
 1756:             else list.Add(0);
 1757:  
 1758:             // integer: 175, binary: 010101111, string: f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1759:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1760:             if (item != 0) list.Add(item);
 1761:             else list.Add(0);
 1762:  
 1763:             // integer: 176, binary: 010110000, string: f.Class == "P" || f.Class == "L" || f.Class == "U"
 1764:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1765:             if (item != 0) list.Add(item);
 1766:             else list.Add(0);
 1767:  
 1768:             // integer: 177, binary: 010110001, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "S"
 1769:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1770:             if (item != 0) list.Add(item);
 1771:             else list.Add(0);
 1772:  
 1773:             // integer: 178, binary: 010110010, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "H"
 1774:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1775:             if (item != 0) list.Add(item);
 1776:             else list.Add(0);
 1777:  
 1778:             // integer: 179, binary: 010110011, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 1779:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1780:             if (item != 0) list.Add(item);
 1781:             else list.Add(0);
 1782:  
 1783:             // integer: 180, binary: 010110100, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T"
 1784:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1785:             if (item != 0) list.Add(item);
 1786:             else list.Add(0);
 1787:  
 1788:             // integer: 181, binary: 010110101, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 1789:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1790:             if (item != 0) list.Add(item);
 1791:             else list.Add(0);
 1792:  
 1793:             // integer: 182, binary: 010110110, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 1794:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1795:             if (item != 0) list.Add(item);
 1796:             else list.Add(0);
 1797:  
 1798:             // integer: 183, binary: 010110111, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1799:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1800:             if (item != 0) list.Add(item);
 1801:             else list.Add(0);
 1802:  
 1803:             // integer: 184, binary: 010111000, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R"
 1804:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1805:             if (item != 0) list.Add(item);
 1806:             else list.Add(0);
 1807:  
 1808:             // integer: 185, binary: 010111001, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 1809:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1810:             if (item != 0) list.Add(item);
 1811:             else list.Add(0);
 1812:  
 1813:             // integer: 186, binary: 010111010, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 1814:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1815:             if (item != 0) list.Add(item);
 1816:             else list.Add(0);
 1817:  
 1818:             // integer: 187, binary: 010111011, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1819:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1820:             if (item != 0) list.Add(item);
 1821:             else list.Add(0);
 1822:  
 1823:             // integer: 188, binary: 010111100, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 1824:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1825:             if (item != 0) list.Add(item);
 1826:             else list.Add(0);
 1827:  
 1828:             // integer: 189, binary: 010111101, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1829:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1830:             if (item != 0) list.Add(item);
 1831:             else list.Add(0);
 1832:  
 1833:             // integer: 190, binary: 010111110, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1834:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1835:             if (item != 0) list.Add(item);
 1836:             else list.Add(0);
 1837:  
 1838:             // integer: 191, binary: 010111111, string: f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1839:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1840:             if (item != 0) list.Add(item);
 1841:             else list.Add(0);
 1842:  
 1843:             // integer: 192, binary: 011000000, string: f.Class == "P" || f.Class == "V"
 1844:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1845:             if (item != 0) list.Add(item);
 1846:             else list.Add(0);
 1847:  
 1848:             // integer: 193, binary: 011000001, string: f.Class == "P" || f.Class == "V" || f.Class == "S"
 1849:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1850:             if (item != 0) list.Add(item);
 1851:             else list.Add(0);
 1852:  
 1853:             // integer: 194, binary: 011000010, string: f.Class == "P" || f.Class == "V" || f.Class == "H"
 1854:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1855:             if (item != 0) list.Add(item);
 1856:             else list.Add(0);
 1857:  
 1858:             // integer: 195, binary: 011000011, string: f.Class == "P" || f.Class == "V" || f.Class == "H" || f.Class == "S"
 1859:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1860:             if (item != 0) list.Add(item);
 1861:             else list.Add(0);
 1862:  
 1863:             // integer: 196, binary: 011000100, string: f.Class == "P" || f.Class == "V" || f.Class == "T"
 1864:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1865:             if (item != 0) list.Add(item);
 1866:             else list.Add(0);
 1867:  
 1868:             // integer: 197, binary: 011000101, string: f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "S"
 1869:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1870:             if (item != 0) list.Add(item);
 1871:             else list.Add(0);
 1872:  
 1873:             // integer: 198, binary: 011000110, string: f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "H"
 1874:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1875:             if (item != 0) list.Add(item);
 1876:             else list.Add(0);
 1877:  
 1878:             // integer: 199, binary: 011000111, string: f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1879:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1880:             if (item != 0) list.Add(item);
 1881:             else list.Add(0);
 1882:  
 1883:             // integer: 200, binary: 011001000, string: f.Class == "P" || f.Class == "V" || f.Class == "R"
 1884:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1885:             if (item != 0) list.Add(item);
 1886:             else list.Add(0);
 1887:  
 1888:             // integer: 201, binary: 011001001, string: f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "S"
 1889:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1890:             if (item != 0) list.Add(item);
 1891:             else list.Add(0);
 1892:  
 1893:             // integer: 202, binary: 011001010, string: f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "H"
 1894:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1895:             if (item != 0) list.Add(item);
 1896:             else list.Add(0);
 1897:  
 1898:             // integer: 203, binary: 011001011, string: f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1899:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1900:             if (item != 0) list.Add(item);
 1901:             else list.Add(0);
 1902:  
 1903:             // integer: 204, binary: 011001100, string: f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T"
 1904:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1905:             if (item != 0) list.Add(item);
 1906:             else list.Add(0);
 1907:  
 1908:             // integer: 205, binary: 011001101, string: f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1909:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1910:             if (item != 0) list.Add(item);
 1911:             else list.Add(0);
 1912:  
 1913:             // integer: 206, binary: 011001110, string: f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1914:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1915:             if (item != 0) list.Add(item);
 1916:             else list.Add(0);
 1917:  
 1918:             // integer: 207, binary: 011001111, string: f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1919:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1920:             if (item != 0) list.Add(item);
 1921:             else list.Add(0);
 1922:  
 1923:             // integer: 208, binary: 011010000, string: f.Class == "P" || f.Class == "V" || f.Class == "U"
 1924:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1925:             if (item != 0) list.Add(item);
 1926:             else list.Add(0);
 1927:  
 1928:             // integer: 209, binary: 011010001, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "S"
 1929:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1930:             if (item != 0) list.Add(item);
 1931:             else list.Add(0);
 1932:  
 1933:             // integer: 210, binary: 011010010, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "H"
 1934:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1935:             if (item != 0) list.Add(item);
 1936:             else list.Add(0);
 1937:  
 1938:             // integer: 211, binary: 011010011, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 1939:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1940:             if (item != 0) list.Add(item);
 1941:             else list.Add(0);
 1942:  
 1943:             // integer: 212, binary: 011010100, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T"
 1944:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1945:             if (item != 0) list.Add(item);
 1946:             else list.Add(0);
 1947:  
 1948:             // integer: 213, binary: 011010101, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 1949:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1950:             if (item != 0) list.Add(item);
 1951:             else list.Add(0);
 1952:  
 1953:             // integer: 214, binary: 011010110, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 1954:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1955:             if (item != 0) list.Add(item);
 1956:             else list.Add(0);
 1957:  
 1958:             // integer: 215, binary: 011010111, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1959:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1960:             if (item != 0) list.Add(item);
 1961:             else list.Add(0);
 1962:  
 1963:             // integer: 216, binary: 011011000, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R"
 1964:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1965:             if (item != 0) list.Add(item);
 1966:             else list.Add(0);
 1967:  
 1968:             // integer: 217, binary: 011011001, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 1969:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1970:             if (item != 0) list.Add(item);
 1971:             else list.Add(0);
 1972:  
 1973:             // integer: 218, binary: 011011010, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 1974:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1975:             if (item != 0) list.Add(item);
 1976:             else list.Add(0);
 1977:  
 1978:             // integer: 219, binary: 011011011, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 1979:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1980:             if (item != 0) list.Add(item);
 1981:             else list.Add(0);
 1982:  
 1983:             // integer: 220, binary: 011011100, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 1984:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1985:             if (item != 0) list.Add(item);
 1986:             else list.Add(0);
 1987:  
 1988:             // integer: 221, binary: 011011101, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 1989:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1990:             if (item != 0) list.Add(item);
 1991:             else list.Add(0);
 1992:  
 1993:             // integer: 222, binary: 011011110, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 1994:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 1995:             if (item != 0) list.Add(item);
 1996:             else list.Add(0);
 1997:  
 1998:             // integer: 223, binary: 011011111, string: f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 1999:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2000:             if (item != 0) list.Add(item);
 2001:             else list.Add(0);
 2002:  
 2003:             // integer: 224, binary: 011100000, string: f.Class == "P" || f.Class == "V" || f.Class == "L"
 2004:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2005:             if (item != 0) list.Add(item);
 2006:             else list.Add(0);
 2007:  
 2008:             // integer: 225, binary: 011100001, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "S"
 2009:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2010:             if (item != 0) list.Add(item);
 2011:             else list.Add(0);
 2012:  
 2013:             // integer: 226, binary: 011100010, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "H"
 2014:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2015:             if (item != 0) list.Add(item);
 2016:             else list.Add(0);
 2017:  
 2018:             // integer: 227, binary: 011100011, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "H" || f.Class == "S"
 2019:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2020:             if (item != 0) list.Add(item);
 2021:             else list.Add(0);
 2022:  
 2023:             // integer: 228, binary: 011100100, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T"
 2024:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2025:             if (item != 0) list.Add(item);
 2026:             else list.Add(0);
 2027:  
 2028:             // integer: 229, binary: 011100101, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "S"
 2029:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2030:             if (item != 0) list.Add(item);
 2031:             else list.Add(0);
 2032:  
 2033:             // integer: 230, binary: 011100110, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H"
 2034:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2035:             if (item != 0) list.Add(item);
 2036:             else list.Add(0);
 2037:  
 2038:             // integer: 231, binary: 011100111, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2039:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2040:             if (item != 0) list.Add(item);
 2041:             else list.Add(0);
 2042:  
 2043:             // integer: 232, binary: 011101000, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R"
 2044:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2045:             if (item != 0) list.Add(item);
 2046:             else list.Add(0);
 2047:  
 2048:             // integer: 233, binary: 011101001, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "S"
 2049:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2050:             if (item != 0) list.Add(item);
 2051:             else list.Add(0);
 2052:  
 2053:             // integer: 234, binary: 011101010, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H"
 2054:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2055:             if (item != 0) list.Add(item);
 2056:             else list.Add(0);
 2057:  
 2058:             // integer: 235, binary: 011101011, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2059:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2060:             if (item != 0) list.Add(item);
 2061:             else list.Add(0);
 2062:  
 2063:             // integer: 236, binary: 011101100, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T"
 2064:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2065:             if (item != 0) list.Add(item);
 2066:             else list.Add(0);
 2067:  
 2068:             // integer: 237, binary: 011101101, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2069:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2070:             if (item != 0) list.Add(item);
 2071:             else list.Add(0);
 2072:  
 2073:             // integer: 238, binary: 011101110, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2074:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2075:             if (item != 0) list.Add(item);
 2076:             else list.Add(0);
 2077:  
 2078:             // integer: 239, binary: 011101111, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2079:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2080:             if (item != 0) list.Add(item);
 2081:             else list.Add(0);
 2082:  
 2083:             // integer: 240, binary: 011110000, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U"
 2084:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2085:             if (item != 0) list.Add(item);
 2086:             else list.Add(0);
 2087:  
 2088:             // integer: 241, binary: 011110001, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "S"
 2089:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2090:             if (item != 0) list.Add(item);
 2091:             else list.Add(0);
 2092:  
 2093:             // integer: 242, binary: 011110010, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H"
 2094:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2095:             if (item != 0) list.Add(item);
 2096:             else list.Add(0);
 2097:  
 2098:             // integer: 243, binary: 011110011, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 2099:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2100:             if (item != 0) list.Add(item);
 2101:             else list.Add(0);
 2102:  
 2103:             // integer: 244, binary: 011110100, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T"
 2104:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2105:             if (item != 0) list.Add(item);
 2106:             else list.Add(0);
 2107:  
 2108:             // integer: 245, binary: 011110101, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 2109:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2110:             if (item != 0) list.Add(item);
 2111:             else list.Add(0);
 2112:  
 2113:             // integer: 246, binary: 011110110, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 2114:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2115:             if (item != 0) list.Add(item);
 2116:             else list.Add(0);
 2117:  
 2118:             // integer: 247, binary: 011110111, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2119:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2120:             if (item != 0) list.Add(item);
 2121:             else list.Add(0);
 2122:  
 2123:             // integer: 248, binary: 011111000, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R"
 2124:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2125:             if (item != 0) list.Add(item);
 2126:             else list.Add(0);
 2127:  
 2128:             // integer: 249, binary: 011111001, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 2129:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2130:             if (item != 0) list.Add(item);
 2131:             else list.Add(0);
 2132:  
 2133:             // integer: 250, binary: 011111010, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 2134:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2135:             if (item != 0) list.Add(item);
 2136:             else list.Add(0);
 2137:  
 2138:             // integer: 251, binary: 011111011, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2139:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2140:             if (item != 0) list.Add(item);
 2141:             else list.Add(0);
 2142:  
 2143:             // integer: 252, binary: 011111100, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 2144:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2145:             if (item != 0) list.Add(item);
 2146:             else list.Add(0);
 2147:  
 2148:             // integer: 253, binary: 011111101, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2149:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2150:             if (item != 0) list.Add(item);
 2151:             else list.Add(0);
 2152:  
 2153:             // integer: 254, binary: 011111110, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2154:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2155:             if (item != 0) list.Add(item);
 2156:             else list.Add(0);
 2157:  
 2158:             // integer: 255, binary: 011111111, string: f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2159:             item = (from f in featureClassDistanceToCapitalList where f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2160:             if (item != 0) list.Add(item);
 2161:             else list.Add(0);
 2162:  
 2163:             // integer: 256, binary: 100000000, string: f.Class == "A"
 2164:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2165:             if (item != 0) list.Add(item);
 2166:             else list.Add(0);
 2167:  
 2168:             // integer: 257, binary: 100000001, string: f.Class == "A" || f.Class == "S"
 2169:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2170:             if (item != 0) list.Add(item);
 2171:             else list.Add(0);
 2172:  
 2173:             // integer: 258, binary: 100000010, string: f.Class == "A" || f.Class == "H"
 2174:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2175:             if (item != 0) list.Add(item);
 2176:             else list.Add(0);
 2177:  
 2178:             // integer: 259, binary: 100000011, string: f.Class == "A" || f.Class == "H" || f.Class == "S"
 2179:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2180:             if (item != 0) list.Add(item);
 2181:             else list.Add(0);
 2182:  
 2183:             // integer: 260, binary: 100000100, string: f.Class == "A" || f.Class == "T"
 2184:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2185:             if (item != 0) list.Add(item);
 2186:             else list.Add(0);
 2187:  
 2188:             // integer: 261, binary: 100000101, string: f.Class == "A" || f.Class == "T" || f.Class == "S"
 2189:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2190:             if (item != 0) list.Add(item);
 2191:             else list.Add(0);
 2192:  
 2193:             // integer: 262, binary: 100000110, string: f.Class == "A" || f.Class == "T" || f.Class == "H"
 2194:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2195:             if (item != 0) list.Add(item);
 2196:             else list.Add(0);
 2197:  
 2198:             // integer: 263, binary: 100000111, string: f.Class == "A" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2199:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2200:             if (item != 0) list.Add(item);
 2201:             else list.Add(0);
 2202:  
 2203:             // integer: 264, binary: 100001000, string: f.Class == "A" || f.Class == "R"
 2204:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2205:             if (item != 0) list.Add(item);
 2206:             else list.Add(0);
 2207:  
 2208:             // integer: 265, binary: 100001001, string: f.Class == "A" || f.Class == "R" || f.Class == "S"
 2209:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2210:             if (item != 0) list.Add(item);
 2211:             else list.Add(0);
 2212:  
 2213:             // integer: 266, binary: 100001010, string: f.Class == "A" || f.Class == "R" || f.Class == "H"
 2214:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2215:             if (item != 0) list.Add(item);
 2216:             else list.Add(0);
 2217:  
 2218:             // integer: 267, binary: 100001011, string: f.Class == "A" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2219:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2220:             if (item != 0) list.Add(item);
 2221:             else list.Add(0);
 2222:  
 2223:             // integer: 268, binary: 100001100, string: f.Class == "A" || f.Class == "R" || f.Class == "T"
 2224:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2225:             if (item != 0) list.Add(item);
 2226:             else list.Add(0);
 2227:  
 2228:             // integer: 269, binary: 100001101, string: f.Class == "A" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2229:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2230:             if (item != 0) list.Add(item);
 2231:             else list.Add(0);
 2232:  
 2233:             // integer: 270, binary: 100001110, string: f.Class == "A" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2234:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2235:             if (item != 0) list.Add(item);
 2236:             else list.Add(0);
 2237:  
 2238:             // integer: 271, binary: 100001111, string: f.Class == "A" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2239:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2240:             if (item != 0) list.Add(item);
 2241:             else list.Add(0);
 2242:  
 2243:             // integer: 272, binary: 100010000, string: f.Class == "A" || f.Class == "U"
 2244:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2245:             if (item != 0) list.Add(item);
 2246:             else list.Add(0);
 2247:  
 2248:             // integer: 273, binary: 100010001, string: f.Class == "A" || f.Class == "U" || f.Class == "S"
 2249:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2250:             if (item != 0) list.Add(item);
 2251:             else list.Add(0);
 2252:  
 2253:             // integer: 274, binary: 100010010, string: f.Class == "A" || f.Class == "U" || f.Class == "H"
 2254:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2255:             if (item != 0) list.Add(item);
 2256:             else list.Add(0);
 2257:  
 2258:             // integer: 275, binary: 100010011, string: f.Class == "A" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 2259:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2260:             if (item != 0) list.Add(item);
 2261:             else list.Add(0);
 2262:  
 2263:             // integer: 276, binary: 100010100, string: f.Class == "A" || f.Class == "U" || f.Class == "T"
 2264:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2265:             if (item != 0) list.Add(item);
 2266:             else list.Add(0);
 2267:  
 2268:             // integer: 277, binary: 100010101, string: f.Class == "A" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 2269:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2270:             if (item != 0) list.Add(item);
 2271:             else list.Add(0);
 2272:  
 2273:             // integer: 278, binary: 100010110, string: f.Class == "A" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 2274:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2275:             if (item != 0) list.Add(item);
 2276:             else list.Add(0);
 2277:  
 2278:             // integer: 279, binary: 100010111, string: f.Class == "A" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2279:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2280:             if (item != 0) list.Add(item);
 2281:             else list.Add(0);
 2282:  
 2283:             // integer: 280, binary: 100011000, string: f.Class == "A" || f.Class == "U" || f.Class == "R"
 2284:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2285:             if (item != 0) list.Add(item);
 2286:             else list.Add(0);
 2287:  
 2288:             // integer: 281, binary: 100011001, string: f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 2289:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2290:             if (item != 0) list.Add(item);
 2291:             else list.Add(0);
 2292:  
 2293:             // integer: 282, binary: 100011010, string: f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 2294:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2295:             if (item != 0) list.Add(item);
 2296:             else list.Add(0);
 2297:  
 2298:             // integer: 283, binary: 100011011, string: f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2299:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2300:             if (item != 0) list.Add(item);
 2301:             else list.Add(0);
 2302:  
 2303:             // integer: 284, binary: 100011100, string: f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 2304:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2305:             if (item != 0) list.Add(item);
 2306:             else list.Add(0);
 2307:  
 2308:             // integer: 285, binary: 100011101, string: f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2309:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2310:             if (item != 0) list.Add(item);
 2311:             else list.Add(0);
 2312:  
 2313:             // integer: 286, binary: 100011110, string: f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2314:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2315:             if (item != 0) list.Add(item);
 2316:             else list.Add(0);
 2317:  
 2318:             // integer: 287, binary: 100011111, string: f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2319:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2320:             if (item != 0) list.Add(item);
 2321:             else list.Add(0);
 2322:  
 2323:             // integer: 288, binary: 100100000, string: f.Class == "A" || f.Class == "L"
 2324:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2325:             if (item != 0) list.Add(item);
 2326:             else list.Add(0);
 2327:  
 2328:             // integer: 289, binary: 100100001, string: f.Class == "A" || f.Class == "L" || f.Class == "S"
 2329:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2330:             if (item != 0) list.Add(item);
 2331:             else list.Add(0);
 2332:  
 2333:             // integer: 290, binary: 100100010, string: f.Class == "A" || f.Class == "L" || f.Class == "H"
 2334:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2335:             if (item != 0) list.Add(item);
 2336:             else list.Add(0);
 2337:  
 2338:             // integer: 291, binary: 100100011, string: f.Class == "A" || f.Class == "L" || f.Class == "H" || f.Class == "S"
 2339:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2340:             if (item != 0) list.Add(item);
 2341:             else list.Add(0);
 2342:  
 2343:             // integer: 292, binary: 100100100, string: f.Class == "A" || f.Class == "L" || f.Class == "T"
 2344:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2345:             if (item != 0) list.Add(item);
 2346:             else list.Add(0);
 2347:  
 2348:             // integer: 293, binary: 100100101, string: f.Class == "A" || f.Class == "L" || f.Class == "T" || f.Class == "S"
 2349:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2350:             if (item != 0) list.Add(item);
 2351:             else list.Add(0);
 2352:  
 2353:             // integer: 294, binary: 100100110, string: f.Class == "A" || f.Class == "L" || f.Class == "T" || f.Class == "H"
 2354:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2355:             if (item != 0) list.Add(item);
 2356:             else list.Add(0);
 2357:  
 2358:             // integer: 295, binary: 100100111, string: f.Class == "A" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2359:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2360:             if (item != 0) list.Add(item);
 2361:             else list.Add(0);
 2362:  
 2363:             // integer: 296, binary: 100101000, string: f.Class == "A" || f.Class == "L" || f.Class == "R"
 2364:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2365:             if (item != 0) list.Add(item);
 2366:             else list.Add(0);
 2367:  
 2368:             // integer: 297, binary: 100101001, string: f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "S"
 2369:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2370:             if (item != 0) list.Add(item);
 2371:             else list.Add(0);
 2372:  
 2373:             // integer: 298, binary: 100101010, string: f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "H"
 2374:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2375:             if (item != 0) list.Add(item);
 2376:             else list.Add(0);
 2377:  
 2378:             // integer: 299, binary: 100101011, string: f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2379:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2380:             if (item != 0) list.Add(item);
 2381:             else list.Add(0);
 2382:  
 2383:             // integer: 300, binary: 100101100, string: f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "T"
 2384:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2385:             if (item != 0) list.Add(item);
 2386:             else list.Add(0);
 2387:  
 2388:             // integer: 301, binary: 100101101, string: f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2389:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2390:             if (item != 0) list.Add(item);
 2391:             else list.Add(0);
 2392:  
 2393:             // integer: 302, binary: 100101110, string: f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2394:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2395:             if (item != 0) list.Add(item);
 2396:             else list.Add(0);
 2397:  
 2398:             // integer: 303, binary: 100101111, string: f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2399:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2400:             if (item != 0) list.Add(item);
 2401:             else list.Add(0);
 2402:  
 2403:             // integer: 304, binary: 100110000, string: f.Class == "A" || f.Class == "L" || f.Class == "U"
 2404:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2405:             if (item != 0) list.Add(item);
 2406:             else list.Add(0);
 2407:  
 2408:             // integer: 305, binary: 100110001, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "S"
 2409:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2410:             if (item != 0) list.Add(item);
 2411:             else list.Add(0);
 2412:  
 2413:             // integer: 306, binary: 100110010, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "H"
 2414:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2415:             if (item != 0) list.Add(item);
 2416:             else list.Add(0);
 2417:  
 2418:             // integer: 307, binary: 100110011, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 2419:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2420:             if (item != 0) list.Add(item);
 2421:             else list.Add(0);
 2422:  
 2423:             // integer: 308, binary: 100110100, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "T"
 2424:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2425:             if (item != 0) list.Add(item);
 2426:             else list.Add(0);
 2427:  
 2428:             // integer: 309, binary: 100110101, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 2429:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2430:             if (item != 0) list.Add(item);
 2431:             else list.Add(0);
 2432:  
 2433:             // integer: 310, binary: 100110110, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 2434:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2435:             if (item != 0) list.Add(item);
 2436:             else list.Add(0);
 2437:  
 2438:             // integer: 311, binary: 100110111, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2439:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2440:             if (item != 0) list.Add(item);
 2441:             else list.Add(0);
 2442:  
 2443:             // integer: 312, binary: 100111000, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R"
 2444:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2445:             if (item != 0) list.Add(item);
 2446:             else list.Add(0);
 2447:  
 2448:             // integer: 313, binary: 100111001, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 2449:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2450:             if (item != 0) list.Add(item);
 2451:             else list.Add(0);
 2452:  
 2453:             // integer: 314, binary: 100111010, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 2454:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2455:             if (item != 0) list.Add(item);
 2456:             else list.Add(0);
 2457:  
 2458:             // integer: 315, binary: 100111011, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2459:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2460:             if (item != 0) list.Add(item);
 2461:             else list.Add(0);
 2462:  
 2463:             // integer: 316, binary: 100111100, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 2464:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2465:             if (item != 0) list.Add(item);
 2466:             else list.Add(0);
 2467:  
 2468:             // integer: 317, binary: 100111101, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2469:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2470:             if (item != 0) list.Add(item);
 2471:             else list.Add(0);
 2472:  
 2473:             // integer: 318, binary: 100111110, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2474:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2475:             if (item != 0) list.Add(item);
 2476:             else list.Add(0);
 2477:  
 2478:             // integer: 319, binary: 100111111, string: f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2479:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2480:             if (item != 0) list.Add(item);
 2481:             else list.Add(0);
 2482:  
 2483:             // integer: 320, binary: 101000000, string: f.Class == "A" || f.Class == "V"
 2484:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2485:             if (item != 0) list.Add(item);
 2486:             else list.Add(0);
 2487:  
 2488:             // integer: 321, binary: 101000001, string: f.Class == "A" || f.Class == "V" || f.Class == "S"
 2489:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2490:             if (item != 0) list.Add(item);
 2491:             else list.Add(0);
 2492:  
 2493:             // integer: 322, binary: 101000010, string: f.Class == "A" || f.Class == "V" || f.Class == "H"
 2494:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2495:             if (item != 0) list.Add(item);
 2496:             else list.Add(0);
 2497:  
 2498:             // integer: 323, binary: 101000011, string: f.Class == "A" || f.Class == "V" || f.Class == "H" || f.Class == "S"
 2499:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2500:             if (item != 0) list.Add(item);
 2501:             else list.Add(0);
 2502:  
 2503:             // integer: 324, binary: 101000100, string: f.Class == "A" || f.Class == "V" || f.Class == "T"
 2504:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2505:             if (item != 0) list.Add(item);
 2506:             else list.Add(0);
 2507:  
 2508:             // integer: 325, binary: 101000101, string: f.Class == "A" || f.Class == "V" || f.Class == "T" || f.Class == "S"
 2509:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2510:             if (item != 0) list.Add(item);
 2511:             else list.Add(0);
 2512:  
 2513:             // integer: 326, binary: 101000110, string: f.Class == "A" || f.Class == "V" || f.Class == "T" || f.Class == "H"
 2514:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2515:             if (item != 0) list.Add(item);
 2516:             else list.Add(0);
 2517:  
 2518:             // integer: 327, binary: 101000111, string: f.Class == "A" || f.Class == "V" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2519:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2520:             if (item != 0) list.Add(item);
 2521:             else list.Add(0);
 2522:  
 2523:             // integer: 328, binary: 101001000, string: f.Class == "A" || f.Class == "V" || f.Class == "R"
 2524:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2525:             if (item != 0) list.Add(item);
 2526:             else list.Add(0);
 2527:  
 2528:             // integer: 329, binary: 101001001, string: f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "S"
 2529:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2530:             if (item != 0) list.Add(item);
 2531:             else list.Add(0);
 2532:  
 2533:             // integer: 330, binary: 101001010, string: f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "H"
 2534:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2535:             if (item != 0) list.Add(item);
 2536:             else list.Add(0);
 2537:  
 2538:             // integer: 331, binary: 101001011, string: f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2539:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2540:             if (item != 0) list.Add(item);
 2541:             else list.Add(0);
 2542:  
 2543:             // integer: 332, binary: 101001100, string: f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "T"
 2544:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2545:             if (item != 0) list.Add(item);
 2546:             else list.Add(0);
 2547:  
 2548:             // integer: 333, binary: 101001101, string: f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2549:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2550:             if (item != 0) list.Add(item);
 2551:             else list.Add(0);
 2552:  
 2553:             // integer: 334, binary: 101001110, string: f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2554:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2555:             if (item != 0) list.Add(item);
 2556:             else list.Add(0);
 2557:  
 2558:             // integer: 335, binary: 101001111, string: f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2559:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2560:             if (item != 0) list.Add(item);
 2561:             else list.Add(0);
 2562:  
 2563:             // integer: 336, binary: 101010000, string: f.Class == "A" || f.Class == "V" || f.Class == "U"
 2564:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2565:             if (item != 0) list.Add(item);
 2566:             else list.Add(0);
 2567:  
 2568:             // integer: 337, binary: 101010001, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "S"
 2569:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2570:             if (item != 0) list.Add(item);
 2571:             else list.Add(0);
 2572:  
 2573:             // integer: 338, binary: 101010010, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "H"
 2574:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2575:             if (item != 0) list.Add(item);
 2576:             else list.Add(0);
 2577:  
 2578:             // integer: 339, binary: 101010011, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 2579:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2580:             if (item != 0) list.Add(item);
 2581:             else list.Add(0);
 2582:  
 2583:             // integer: 340, binary: 101010100, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "T"
 2584:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2585:             if (item != 0) list.Add(item);
 2586:             else list.Add(0);
 2587:  
 2588:             // integer: 341, binary: 101010101, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 2589:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2590:             if (item != 0) list.Add(item);
 2591:             else list.Add(0);
 2592:  
 2593:             // integer: 342, binary: 101010110, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 2594:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2595:             if (item != 0) list.Add(item);
 2596:             else list.Add(0);
 2597:  
 2598:             // integer: 343, binary: 101010111, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2599:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2600:             if (item != 0) list.Add(item);
 2601:             else list.Add(0);
 2602:  
 2603:             // integer: 344, binary: 101011000, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R"
 2604:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2605:             if (item != 0) list.Add(item);
 2606:             else list.Add(0);
 2607:  
 2608:             // integer: 345, binary: 101011001, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 2609:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2610:             if (item != 0) list.Add(item);
 2611:             else list.Add(0);
 2612:  
 2613:             // integer: 346, binary: 101011010, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 2614:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2615:             if (item != 0) list.Add(item);
 2616:             else list.Add(0);
 2617:  
 2618:             // integer: 347, binary: 101011011, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2619:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2620:             if (item != 0) list.Add(item);
 2621:             else list.Add(0);
 2622:  
 2623:             // integer: 348, binary: 101011100, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 2624:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2625:             if (item != 0) list.Add(item);
 2626:             else list.Add(0);
 2627:  
 2628:             // integer: 349, binary: 101011101, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2629:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2630:             if (item != 0) list.Add(item);
 2631:             else list.Add(0);
 2632:  
 2633:             // integer: 350, binary: 101011110, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2634:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2635:             if (item != 0) list.Add(item);
 2636:             else list.Add(0);
 2637:  
 2638:             // integer: 351, binary: 101011111, string: f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2639:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2640:             if (item != 0) list.Add(item);
 2641:             else list.Add(0);
 2642:  
 2643:             // integer: 352, binary: 101100000, string: f.Class == "A" || f.Class == "V" || f.Class == "L"
 2644:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2645:             if (item != 0) list.Add(item);
 2646:             else list.Add(0);
 2647:  
 2648:             // integer: 353, binary: 101100001, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "S"
 2649:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2650:             if (item != 0) list.Add(item);
 2651:             else list.Add(0);
 2652:  
 2653:             // integer: 354, binary: 101100010, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "H"
 2654:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2655:             if (item != 0) list.Add(item);
 2656:             else list.Add(0);
 2657:  
 2658:             // integer: 355, binary: 101100011, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "H" || f.Class == "S"
 2659:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2660:             if (item != 0) list.Add(item);
 2661:             else list.Add(0);
 2662:  
 2663:             // integer: 356, binary: 101100100, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "T"
 2664:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2665:             if (item != 0) list.Add(item);
 2666:             else list.Add(0);
 2667:  
 2668:             // integer: 357, binary: 101100101, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "S"
 2669:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2670:             if (item != 0) list.Add(item);
 2671:             else list.Add(0);
 2672:  
 2673:             // integer: 358, binary: 101100110, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H"
 2674:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2675:             if (item != 0) list.Add(item);
 2676:             else list.Add(0);
 2677:  
 2678:             // integer: 359, binary: 101100111, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2679:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2680:             if (item != 0) list.Add(item);
 2681:             else list.Add(0);
 2682:  
 2683:             // integer: 360, binary: 101101000, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R"
 2684:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2685:             if (item != 0) list.Add(item);
 2686:             else list.Add(0);
 2687:  
 2688:             // integer: 361, binary: 101101001, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "S"
 2689:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2690:             if (item != 0) list.Add(item);
 2691:             else list.Add(0);
 2692:  
 2693:             // integer: 362, binary: 101101010, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H"
 2694:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2695:             if (item != 0) list.Add(item);
 2696:             else list.Add(0);
 2697:  
 2698:             // integer: 363, binary: 101101011, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2699:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2700:             if (item != 0) list.Add(item);
 2701:             else list.Add(0);
 2702:  
 2703:             // integer: 364, binary: 101101100, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T"
 2704:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2705:             if (item != 0) list.Add(item);
 2706:             else list.Add(0);
 2707:  
 2708:             // integer: 365, binary: 101101101, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2709:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2710:             if (item != 0) list.Add(item);
 2711:             else list.Add(0);
 2712:  
 2713:             // integer: 366, binary: 101101110, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2714:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2715:             if (item != 0) list.Add(item);
 2716:             else list.Add(0);
 2717:  
 2718:             // integer: 367, binary: 101101111, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2719:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2720:             if (item != 0) list.Add(item);
 2721:             else list.Add(0);
 2722:  
 2723:             // integer: 368, binary: 101110000, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U"
 2724:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2725:             if (item != 0) list.Add(item);
 2726:             else list.Add(0);
 2727:  
 2728:             // integer: 369, binary: 101110001, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "S"
 2729:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2730:             if (item != 0) list.Add(item);
 2731:             else list.Add(0);
 2732:  
 2733:             // integer: 370, binary: 101110010, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H"
 2734:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2735:             if (item != 0) list.Add(item);
 2736:             else list.Add(0);
 2737:  
 2738:             // integer: 371, binary: 101110011, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 2739:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2740:             if (item != 0) list.Add(item);
 2741:             else list.Add(0);
 2742:  
 2743:             // integer: 372, binary: 101110100, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T"
 2744:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2745:             if (item != 0) list.Add(item);
 2746:             else list.Add(0);
 2747:  
 2748:             // integer: 373, binary: 101110101, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 2749:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2750:             if (item != 0) list.Add(item);
 2751:             else list.Add(0);
 2752:  
 2753:             // integer: 374, binary: 101110110, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 2754:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2755:             if (item != 0) list.Add(item);
 2756:             else list.Add(0);
 2757:  
 2758:             // integer: 375, binary: 101110111, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2759:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2760:             if (item != 0) list.Add(item);
 2761:             else list.Add(0);
 2762:  
 2763:             // integer: 376, binary: 101111000, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R"
 2764:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2765:             if (item != 0) list.Add(item);
 2766:             else list.Add(0);
 2767:  
 2768:             // integer: 377, binary: 101111001, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 2769:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2770:             if (item != 0) list.Add(item);
 2771:             else list.Add(0);
 2772:  
 2773:             // integer: 378, binary: 101111010, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 2774:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2775:             if (item != 0) list.Add(item);
 2776:             else list.Add(0);
 2777:  
 2778:             // integer: 379, binary: 101111011, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2779:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2780:             if (item != 0) list.Add(item);
 2781:             else list.Add(0);
 2782:  
 2783:             // integer: 380, binary: 101111100, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 2784:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2785:             if (item != 0) list.Add(item);
 2786:             else list.Add(0);
 2787:  
 2788:             // integer: 381, binary: 101111101, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2789:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2790:             if (item != 0) list.Add(item);
 2791:             else list.Add(0);
 2792:  
 2793:             // integer: 382, binary: 101111110, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2794:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2795:             if (item != 0) list.Add(item);
 2796:             else list.Add(0);
 2797:  
 2798:             // integer: 383, binary: 101111111, string: f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2799:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2800:             if (item != 0) list.Add(item);
 2801:             else list.Add(0);
 2802:  
 2803:             // integer: 384, binary: 110000000, string: f.Class == "A" || f.Class == "P"
 2804:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2805:             if (item != 0) list.Add(item);
 2806:             else list.Add(0);
 2807:  
 2808:             // integer: 385, binary: 110000001, string: f.Class == "A" || f.Class == "P" || f.Class == "S"
 2809:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2810:             if (item != 0) list.Add(item);
 2811:             else list.Add(0);
 2812:  
 2813:             // integer: 386, binary: 110000010, string: f.Class == "A" || f.Class == "P" || f.Class == "H"
 2814:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2815:             if (item != 0) list.Add(item);
 2816:             else list.Add(0);
 2817:  
 2818:             // integer: 387, binary: 110000011, string: f.Class == "A" || f.Class == "P" || f.Class == "H" || f.Class == "S"
 2819:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2820:             if (item != 0) list.Add(item);
 2821:             else list.Add(0);
 2822:  
 2823:             // integer: 388, binary: 110000100, string: f.Class == "A" || f.Class == "P" || f.Class == "T"
 2824:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2825:             if (item != 0) list.Add(item);
 2826:             else list.Add(0);
 2827:  
 2828:             // integer: 389, binary: 110000101, string: f.Class == "A" || f.Class == "P" || f.Class == "T" || f.Class == "S"
 2829:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2830:             if (item != 0) list.Add(item);
 2831:             else list.Add(0);
 2832:  
 2833:             // integer: 390, binary: 110000110, string: f.Class == "A" || f.Class == "P" || f.Class == "T" || f.Class == "H"
 2834:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2835:             if (item != 0) list.Add(item);
 2836:             else list.Add(0);
 2837:  
 2838:             // integer: 391, binary: 110000111, string: f.Class == "A" || f.Class == "P" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2839:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2840:             if (item != 0) list.Add(item);
 2841:             else list.Add(0);
 2842:  
 2843:             // integer: 392, binary: 110001000, string: f.Class == "A" || f.Class == "P" || f.Class == "R"
 2844:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2845:             if (item != 0) list.Add(item);
 2846:             else list.Add(0);
 2847:  
 2848:             // integer: 393, binary: 110001001, string: f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "S"
 2849:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2850:             if (item != 0) list.Add(item);
 2851:             else list.Add(0);
 2852:  
 2853:             // integer: 394, binary: 110001010, string: f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "H"
 2854:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2855:             if (item != 0) list.Add(item);
 2856:             else list.Add(0);
 2857:  
 2858:             // integer: 395, binary: 110001011, string: f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2859:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2860:             if (item != 0) list.Add(item);
 2861:             else list.Add(0);
 2862:  
 2863:             // integer: 396, binary: 110001100, string: f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "T"
 2864:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2865:             if (item != 0) list.Add(item);
 2866:             else list.Add(0);
 2867:  
 2868:             // integer: 397, binary: 110001101, string: f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2869:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2870:             if (item != 0) list.Add(item);
 2871:             else list.Add(0);
 2872:  
 2873:             // integer: 398, binary: 110001110, string: f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2874:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2875:             if (item != 0) list.Add(item);
 2876:             else list.Add(0);
 2877:  
 2878:             // integer: 399, binary: 110001111, string: f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2879:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2880:             if (item != 0) list.Add(item);
 2881:             else list.Add(0);
 2882:  
 2883:             // integer: 400, binary: 110010000, string: f.Class == "A" || f.Class == "P" || f.Class == "U"
 2884:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2885:             if (item != 0) list.Add(item);
 2886:             else list.Add(0);
 2887:  
 2888:             // integer: 401, binary: 110010001, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "S"
 2889:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2890:             if (item != 0) list.Add(item);
 2891:             else list.Add(0);
 2892:  
 2893:             // integer: 402, binary: 110010010, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "H"
 2894:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2895:             if (item != 0) list.Add(item);
 2896:             else list.Add(0);
 2897:  
 2898:             // integer: 403, binary: 110010011, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 2899:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2900:             if (item != 0) list.Add(item);
 2901:             else list.Add(0);
 2902:  
 2903:             // integer: 404, binary: 110010100, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "T"
 2904:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2905:             if (item != 0) list.Add(item);
 2906:             else list.Add(0);
 2907:  
 2908:             // integer: 405, binary: 110010101, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 2909:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2910:             if (item != 0) list.Add(item);
 2911:             else list.Add(0);
 2912:  
 2913:             // integer: 406, binary: 110010110, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 2914:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2915:             if (item != 0) list.Add(item);
 2916:             else list.Add(0);
 2917:  
 2918:             // integer: 407, binary: 110010111, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2919:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2920:             if (item != 0) list.Add(item);
 2921:             else list.Add(0);
 2922:  
 2923:             // integer: 408, binary: 110011000, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R"
 2924:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2925:             if (item != 0) list.Add(item);
 2926:             else list.Add(0);
 2927:  
 2928:             // integer: 409, binary: 110011001, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 2929:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2930:             if (item != 0) list.Add(item);
 2931:             else list.Add(0);
 2932:  
 2933:             // integer: 410, binary: 110011010, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 2934:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2935:             if (item != 0) list.Add(item);
 2936:             else list.Add(0);
 2937:  
 2938:             // integer: 411, binary: 110011011, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 2939:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2940:             if (item != 0) list.Add(item);
 2941:             else list.Add(0);
 2942:  
 2943:             // integer: 412, binary: 110011100, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 2944:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2945:             if (item != 0) list.Add(item);
 2946:             else list.Add(0);
 2947:  
 2948:             // integer: 413, binary: 110011101, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 2949:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2950:             if (item != 0) list.Add(item);
 2951:             else list.Add(0);
 2952:  
 2953:             // integer: 414, binary: 110011110, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 2954:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2955:             if (item != 0) list.Add(item);
 2956:             else list.Add(0);
 2957:  
 2958:             // integer: 415, binary: 110011111, string: f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2959:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2960:             if (item != 0) list.Add(item);
 2961:             else list.Add(0);
 2962:  
 2963:             // integer: 416, binary: 110100000, string: f.Class == "A" || f.Class == "P" || f.Class == "L"
 2964:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2965:             if (item != 0) list.Add(item);
 2966:             else list.Add(0);
 2967:  
 2968:             // integer: 417, binary: 110100001, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "S"
 2969:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2970:             if (item != 0) list.Add(item);
 2971:             else list.Add(0);
 2972:  
 2973:             // integer: 418, binary: 110100010, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "H"
 2974:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2975:             if (item != 0) list.Add(item);
 2976:             else list.Add(0);
 2977:  
 2978:             // integer: 419, binary: 110100011, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "H" || f.Class == "S"
 2979:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2980:             if (item != 0) list.Add(item);
 2981:             else list.Add(0);
 2982:  
 2983:             // integer: 420, binary: 110100100, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "T"
 2984:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2985:             if (item != 0) list.Add(item);
 2986:             else list.Add(0);
 2987:  
 2988:             // integer: 421, binary: 110100101, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "S"
 2989:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2990:             if (item != 0) list.Add(item);
 2991:             else list.Add(0);
 2992:  
 2993:             // integer: 422, binary: 110100110, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "H"
 2994:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 2995:             if (item != 0) list.Add(item);
 2996:             else list.Add(0);
 2997:  
 2998:             // integer: 423, binary: 110100111, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 2999:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3000:             if (item != 0) list.Add(item);
 3001:             else list.Add(0);
 3002:  
 3003:             // integer: 424, binary: 110101000, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R"
 3004:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3005:             if (item != 0) list.Add(item);
 3006:             else list.Add(0);
 3007:  
 3008:             // integer: 425, binary: 110101001, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "S"
 3009:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3010:             if (item != 0) list.Add(item);
 3011:             else list.Add(0);
 3012:  
 3013:             // integer: 426, binary: 110101010, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "H"
 3014:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3015:             if (item != 0) list.Add(item);
 3016:             else list.Add(0);
 3017:  
 3018:             // integer: 427, binary: 110101011, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 3019:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3020:             if (item != 0) list.Add(item);
 3021:             else list.Add(0);
 3022:  
 3023:             // integer: 428, binary: 110101100, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T"
 3024:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3025:             if (item != 0) list.Add(item);
 3026:             else list.Add(0);
 3027:  
 3028:             // integer: 429, binary: 110101101, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 3029:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3030:             if (item != 0) list.Add(item);
 3031:             else list.Add(0);
 3032:  
 3033:             // integer: 430, binary: 110101110, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 3034:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3035:             if (item != 0) list.Add(item);
 3036:             else list.Add(0);
 3037:  
 3038:             // integer: 431, binary: 110101111, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3039:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3040:             if (item != 0) list.Add(item);
 3041:             else list.Add(0);
 3042:  
 3043:             // integer: 432, binary: 110110000, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U"
 3044:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3045:             if (item != 0) list.Add(item);
 3046:             else list.Add(0);
 3047:  
 3048:             // integer: 433, binary: 110110001, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "S"
 3049:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3050:             if (item != 0) list.Add(item);
 3051:             else list.Add(0);
 3052:  
 3053:             // integer: 434, binary: 110110010, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "H"
 3054:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3055:             if (item != 0) list.Add(item);
 3056:             else list.Add(0);
 3057:  
 3058:             // integer: 435, binary: 110110011, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 3059:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3060:             if (item != 0) list.Add(item);
 3061:             else list.Add(0);
 3062:  
 3063:             // integer: 436, binary: 110110100, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T"
 3064:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3065:             if (item != 0) list.Add(item);
 3066:             else list.Add(0);
 3067:  
 3068:             // integer: 437, binary: 110110101, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 3069:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3070:             if (item != 0) list.Add(item);
 3071:             else list.Add(0);
 3072:  
 3073:             // integer: 438, binary: 110110110, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 3074:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3075:             if (item != 0) list.Add(item);
 3076:             else list.Add(0);
 3077:  
 3078:             // integer: 439, binary: 110110111, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3079:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3080:             if (item != 0) list.Add(item);
 3081:             else list.Add(0);
 3082:  
 3083:             // integer: 440, binary: 110111000, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R"
 3084:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3085:             if (item != 0) list.Add(item);
 3086:             else list.Add(0);
 3087:  
 3088:             // integer: 441, binary: 110111001, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 3089:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3090:             if (item != 0) list.Add(item);
 3091:             else list.Add(0);
 3092:  
 3093:             // integer: 442, binary: 110111010, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 3094:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3095:             if (item != 0) list.Add(item);
 3096:             else list.Add(0);
 3097:  
 3098:             // integer: 443, binary: 110111011, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 3099:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3100:             if (item != 0) list.Add(item);
 3101:             else list.Add(0);
 3102:  
 3103:             // integer: 444, binary: 110111100, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 3104:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3105:             if (item != 0) list.Add(item);
 3106:             else list.Add(0);
 3107:  
 3108:             // integer: 445, binary: 110111101, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 3109:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3110:             if (item != 0) list.Add(item);
 3111:             else list.Add(0);
 3112:  
 3113:             // integer: 446, binary: 110111110, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 3114:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3115:             if (item != 0) list.Add(item);
 3116:             else list.Add(0);
 3117:  
 3118:             // integer: 447, binary: 110111111, string: f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3119:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3120:             if (item != 0) list.Add(item);
 3121:             else list.Add(0);
 3122:  
 3123:             // integer: 448, binary: 111000000, string: f.Class == "A" || f.Class == "P" || f.Class == "V"
 3124:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3125:             if (item != 0) list.Add(item);
 3126:             else list.Add(0);
 3127:  
 3128:             // integer: 449, binary: 111000001, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "S"
 3129:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3130:             if (item != 0) list.Add(item);
 3131:             else list.Add(0);
 3132:  
 3133:             // integer: 450, binary: 111000010, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "H"
 3134:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3135:             if (item != 0) list.Add(item);
 3136:             else list.Add(0);
 3137:  
 3138:             // integer: 451, binary: 111000011, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "H" || f.Class == "S"
 3139:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3140:             if (item != 0) list.Add(item);
 3141:             else list.Add(0);
 3142:  
 3143:             // integer: 452, binary: 111000100, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "T"
 3144:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3145:             if (item != 0) list.Add(item);
 3146:             else list.Add(0);
 3147:  
 3148:             // integer: 453, binary: 111000101, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "S"
 3149:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3150:             if (item != 0) list.Add(item);
 3151:             else list.Add(0);
 3152:  
 3153:             // integer: 454, binary: 111000110, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "H"
 3154:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3155:             if (item != 0) list.Add(item);
 3156:             else list.Add(0);
 3157:  
 3158:             // integer: 455, binary: 111000111, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3159:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3160:             if (item != 0) list.Add(item);
 3161:             else list.Add(0);
 3162:  
 3163:             // integer: 456, binary: 111001000, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R"
 3164:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3165:             if (item != 0) list.Add(item);
 3166:             else list.Add(0);
 3167:  
 3168:             // integer: 457, binary: 111001001, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "S"
 3169:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3170:             if (item != 0) list.Add(item);
 3171:             else list.Add(0);
 3172:  
 3173:             // integer: 458, binary: 111001010, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "H"
 3174:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3175:             if (item != 0) list.Add(item);
 3176:             else list.Add(0);
 3177:  
 3178:             // integer: 459, binary: 111001011, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 3179:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3180:             if (item != 0) list.Add(item);
 3181:             else list.Add(0);
 3182:  
 3183:             // integer: 460, binary: 111001100, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T"
 3184:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3185:             if (item != 0) list.Add(item);
 3186:             else list.Add(0);
 3187:  
 3188:             // integer: 461, binary: 111001101, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 3189:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3190:             if (item != 0) list.Add(item);
 3191:             else list.Add(0);
 3192:  
 3193:             // integer: 462, binary: 111001110, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 3194:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3195:             if (item != 0) list.Add(item);
 3196:             else list.Add(0);
 3197:  
 3198:             // integer: 463, binary: 111001111, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3199:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3200:             if (item != 0) list.Add(item);
 3201:             else list.Add(0);
 3202:  
 3203:             // integer: 464, binary: 111010000, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U"
 3204:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3205:             if (item != 0) list.Add(item);
 3206:             else list.Add(0);
 3207:  
 3208:             // integer: 465, binary: 111010001, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "S"
 3209:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3210:             if (item != 0) list.Add(item);
 3211:             else list.Add(0);
 3212:  
 3213:             // integer: 466, binary: 111010010, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "H"
 3214:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3215:             if (item != 0) list.Add(item);
 3216:             else list.Add(0);
 3217:  
 3218:             // integer: 467, binary: 111010011, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 3219:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3220:             if (item != 0) list.Add(item);
 3221:             else list.Add(0);
 3222:  
 3223:             // integer: 468, binary: 111010100, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T"
 3224:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3225:             if (item != 0) list.Add(item);
 3226:             else list.Add(0);
 3227:  
 3228:             // integer: 469, binary: 111010101, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 3229:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3230:             if (item != 0) list.Add(item);
 3231:             else list.Add(0);
 3232:  
 3233:             // integer: 470, binary: 111010110, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 3234:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3235:             if (item != 0) list.Add(item);
 3236:             else list.Add(0);
 3237:  
 3238:             // integer: 471, binary: 111010111, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3239:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3240:             if (item != 0) list.Add(item);
 3241:             else list.Add(0);
 3242:  
 3243:             // integer: 472, binary: 111011000, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R"
 3244:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3245:             if (item != 0) list.Add(item);
 3246:             else list.Add(0);
 3247:  
 3248:             // integer: 473, binary: 111011001, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 3249:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3250:             if (item != 0) list.Add(item);
 3251:             else list.Add(0);
 3252:  
 3253:             // integer: 474, binary: 111011010, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 3254:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3255:             if (item != 0) list.Add(item);
 3256:             else list.Add(0);
 3257:  
 3258:             // integer: 475, binary: 111011011, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 3259:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3260:             if (item != 0) list.Add(item);
 3261:             else list.Add(0);
 3262:  
 3263:             // integer: 476, binary: 111011100, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 3264:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3265:             if (item != 0) list.Add(item);
 3266:             else list.Add(0);
 3267:  
 3268:             // integer: 477, binary: 111011101, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 3269:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3270:             if (item != 0) list.Add(item);
 3271:             else list.Add(0);
 3272:  
 3273:             // integer: 478, binary: 111011110, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 3274:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3275:             if (item != 0) list.Add(item);
 3276:             else list.Add(0);
 3277:  
 3278:             // integer: 479, binary: 111011111, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3279:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3280:             if (item != 0) list.Add(item);
 3281:             else list.Add(0);
 3282:  
 3283:             // integer: 480, binary: 111100000, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L"
 3284:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3285:             if (item != 0) list.Add(item);
 3286:             else list.Add(0);
 3287:  
 3288:             // integer: 481, binary: 111100001, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "S"
 3289:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3290:             if (item != 0) list.Add(item);
 3291:             else list.Add(0);
 3292:  
 3293:             // integer: 482, binary: 111100010, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "H"
 3294:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3295:             if (item != 0) list.Add(item);
 3296:             else list.Add(0);
 3297:  
 3298:             // integer: 483, binary: 111100011, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "H" || f.Class == "S"
 3299:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3300:             if (item != 0) list.Add(item);
 3301:             else list.Add(0);
 3302:  
 3303:             // integer: 484, binary: 111100100, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T"
 3304:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3305:             if (item != 0) list.Add(item);
 3306:             else list.Add(0);
 3307:  
 3308:             // integer: 485, binary: 111100101, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "S"
 3309:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3310:             if (item != 0) list.Add(item);
 3311:             else list.Add(0);
 3312:  
 3313:             // integer: 486, binary: 111100110, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H"
 3314:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3315:             if (item != 0) list.Add(item);
 3316:             else list.Add(0);
 3317:  
 3318:             // integer: 487, binary: 111100111, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3319:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3320:             if (item != 0) list.Add(item);
 3321:             else list.Add(0);
 3322:  
 3323:             // integer: 488, binary: 111101000, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R"
 3324:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3325:             if (item != 0) list.Add(item);
 3326:             else list.Add(0);
 3327:  
 3328:             // integer: 489, binary: 111101001, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "S"
 3329:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3330:             if (item != 0) list.Add(item);
 3331:             else list.Add(0);
 3332:  
 3333:             // integer: 490, binary: 111101010, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H"
 3334:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3335:             if (item != 0) list.Add(item);
 3336:             else list.Add(0);
 3337:  
 3338:             // integer: 491, binary: 111101011, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 3339:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3340:             if (item != 0) list.Add(item);
 3341:             else list.Add(0);
 3342:  
 3343:             // integer: 492, binary: 111101100, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T"
 3344:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3345:             if (item != 0) list.Add(item);
 3346:             else list.Add(0);
 3347:  
 3348:             // integer: 493, binary: 111101101, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 3349:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3350:             if (item != 0) list.Add(item);
 3351:             else list.Add(0);
 3352:  
 3353:             // integer: 494, binary: 111101110, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 3354:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3355:             if (item != 0) list.Add(item);
 3356:             else list.Add(0);
 3357:  
 3358:             // integer: 495, binary: 111101111, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3359:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3360:             if (item != 0) list.Add(item);
 3361:             else list.Add(0);
 3362:  
 3363:             // integer: 496, binary: 111110000, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U"
 3364:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3365:             if (item != 0) list.Add(item);
 3366:             else list.Add(0);
 3367:  
 3368:             // integer: 497, binary: 111110001, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "S"
 3369:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3370:             if (item != 0) list.Add(item);
 3371:             else list.Add(0);
 3372:  
 3373:             // integer: 498, binary: 111110010, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H"
 3374:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3375:             if (item != 0) list.Add(item);
 3376:             else list.Add(0);
 3377:  
 3378:             // integer: 499, binary: 111110011, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S"
 3379:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3380:             if (item != 0) list.Add(item);
 3381:             else list.Add(0);
 3382:  
 3383:             // integer: 500, binary: 111110100, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T"
 3384:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3385:             if (item != 0) list.Add(item);
 3386:             else list.Add(0);
 3387:  
 3388:             // integer: 501, binary: 111110101, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S"
 3389:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3390:             if (item != 0) list.Add(item);
 3391:             else list.Add(0);
 3392:  
 3393:             // integer: 502, binary: 111110110, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H"
 3394:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3395:             if (item != 0) list.Add(item);
 3396:             else list.Add(0);
 3397:  
 3398:             // integer: 503, binary: 111110111, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3399:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3400:             if (item != 0) list.Add(item);
 3401:             else list.Add(0);
 3402:  
 3403:             // integer: 504, binary: 111111000, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R"
 3404:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3405:             if (item != 0) list.Add(item);
 3406:             else list.Add(0);
 3407:  
 3408:             // integer: 505, binary: 111111001, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S"
 3409:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3410:             if (item != 0) list.Add(item);
 3411:             else list.Add(0);
 3412:  
 3413:             // integer: 506, binary: 111111010, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H"
 3414:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3415:             if (item != 0) list.Add(item);
 3416:             else list.Add(0);
 3417:  
 3418:             // integer: 507, binary: 111111011, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S"
 3419:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3420:             if (item != 0) list.Add(item);
 3421:             else list.Add(0);
 3422:  
 3423:             // integer: 508, binary: 111111100, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T"
 3424:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3425:             if (item != 0) list.Add(item);
 3426:             else list.Add(0);
 3427:  
 3428:             // integer: 509, binary: 111111101, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S"
 3429:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3430:             if (item != 0) list.Add(item);
 3431:             else list.Add(0);
 3432:  
 3433:             // integer: 510, binary: 111111110, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H"
 3434:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3435:             if (item != 0) list.Add(item);
 3436:             else list.Add(0);
 3437:  
 3438:             // integer: 511, binary: 111111111, string: f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S"
 3439:             item = (from f in featureClassDistanceToCapitalList where f.Class == "A" || f.Class == "P" || f.Class == "V" || f.Class == "L" || f.Class == "U" || f.Class == "R" || f.Class == "T" || f.Class == "H" || f.Class == "S" orderby f.DistanceToCapital select f.DistanceToCapital).Take(maximumNumberOfTrekToDisplayNearTheCapitalList).LastOrDefault();
 3440:             if (item != 0) list.Add(item);
 3441:             else list.Add(0);
 3442:  
 3443:             // end of generated code
 3444:         }
 3445:  
 3446:         ////////////////////////////////////////////////////////////////////////////
 3447:         ////////////////////////////////////////////////////////////////////////////
 3448:     }
 3449: }