/// <summary> /// Upload and geocode large JSON file /// </summary> /// <param name="fileName">JSON file name</param> public void uploadAndGeocodeLargeJsonFile(string fileName) { Route4MeManager route4Me = new Route4MeManager(apiKey); largeJsonFileProcessingIsDone = false; fileReading = new FastFileReading(); fileReading.jsonObjectsChunkSize = 200; savedAddresses = new List <AddressGeocoded>(); fileReading.JsonFileChunkIsReady += FileReading_JsonFileChunkIsReady; fileReading.JsonFileReadingIsDone += FileReading_JsonFileReadingIsDone; mainResetEvent = new ManualResetEvent(false); fileReading.readingChunksFromLargeJsonFile(fileName); }
public string readJsonTextFromLargeJsonFileOfAddresses(String sFileName) { FastFileReading fileRead = new FastFileReading(); return(fileRead != null?fileRead.readJsonTextFromFile(sFileName) : String.Empty); }