Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 //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());
 }