examples/iot-nirvana/common/src/main/java/com/google/cloud/demo/iot/nirvana/common/TemperatureUtils.java
/** Load a city from the cities test dataset based on its index in the dataset */
Load a city from the cities test dataset based on its index in the dataset
Load a city from the cities test dataset based on its index in the dataset
public static City loadCity(int cityIndex) throws FormatException {
    String citiesJson = loadJsonFromFile();
    City.Builder[] cities = City.fromJsonArray(citiesJson);
    return cities[cityIndex].build();
  }
public static City loadCity ( int cityIndex ) throws FormatException { String citiesJson = loadJsonFromFile ( ) ; City . Builder [ ] cities = City . fromJsonArray ( citiesJson ) ; return cities [ cityIndex ] . build ( ) ; }
Load a city from the cities test dataset based on its index in the dataset
Load a city from the cities test dataset based on its index in the dataset