public static WhereAreFiresResponse [] GetFirePoints(GeoPoint currentPosition, string user) { var args = new WhereAreFires(GeoBox.From(currentPosition, 100)); var firesDetected = WebApiHelper.GetNasaWebApiResponse <WhereAreFiresResponse []> (args); return(firesDetected); }
public void CreateGoBox() { var point = new GeoPoint(39.461538f, -0.4098373f); var geobox = GeoBox.From(point); Assert.NotNull(geobox); }
SofiaEnvirontment() { nasaFirePoints = new List <NasaFirePoint> (); firePoints = new List <FirePoint> (); weatherService = new WeatherService(); var args = new WhereAreFires(GeoBox.From(defaultPoint, DefaultZoom)); var firesDetected = WebApiHelper.GetNasaWebApiResponse <WhereAreFiresResponse []> (args); AddItems(firesDetected); }
static int GetFiresAroundYou(GeoPoint point) => WebApiHelper.GetNasaWebApiResponse <HowManyFiresExistResponse> (new HowManyFiresExist(GeoBox.From(point))).number;