static void Main(string[] args) { //load config json data config configData = new config(); //loading the jsonDeserialzer in jsonDeserializer deserializer = new jsonDeserializer(); //calling the webrequest to get json and then deserializing it featureArray jsonData = deserializer.deserializing(webJsonReq(configData)); //getting the matching addresses List <attributeField> matchingAdresses = costsThatMatch(jsonData); //printing the results results(matchingAdresses, configData); }
//gets the list matching costs public static List <attributeField> costsThatMatch(featureArray jsonModel) { return(jsonModel.features.Where((a => wordCost(a.attributes.STREETNAME, a.attributes.SUFFIX) == a.attributes.ADDRESS_NUMBER)).ToList()); }