Skip to content
Snippets Groups Projects
Commit ec21c88f authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add bounds info

parent a668a69f
No related branches found
No related tags found
Loading
package gov.usgs.earthquake.nshmp.www;
import java.util.List;
import java.util.Optional;
import org.slf4j.LoggerFactory;
......@@ -56,6 +57,7 @@ public class SwaggerController {
var schemas = components.getSchemas();
SwaggerUtils.siteClassSchema(schemas, List.copyOf(model.siteClasses().keySet()));
SwaggerUtils.imtSchema(schemas, List.copyOf(model.config().hazard.imts));
var boundsInfo = SwaggerUtils.locationBoundsInfo(bounds.min, bounds.max, Optional.empty());
FeaturesService.featureTypeSchema(schemas);
openApi.servers(null);
......@@ -63,8 +65,7 @@ public class SwaggerController {
openApi.getInfo().setDescription(
"National Seismic Hazard Model (NSHM) hazard calculations and queries for the " +
model.name() + " hazard model.\n\n" +
String.format("Latitude bounds: [%s, %s]<br>", bounds.min.latitude, bounds.max.latitude) +
String.format("Longitude bounds: [%s, %s]", bounds.min.longitude, bounds.max.longitude));
boundsInfo);
return openApi;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment