{"openapi":"3.1.0","info":{"title":"Elevation API","version":"1.0"},"paths":{"/elevation/api/models/v1":{"get":{"summary":"Available elevation models","operationId":"models_elevation_api_models_v1_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ElevationModels"}}}}},"security":[{"HTTPBearer":[]}]}},"/elevation/api/point/v0":{"get":{"summary":"Single point elevation","description":"Elevation of a single point from a specific model.","operationId":"elevation_elevation_api_point_v0_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"latitude","description":"latitude of input data"},"description":"latitude of input data"},{"name":"lon","in":"query","required":true,"schema":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"longitude","description":"longitude of input data"},"description":"longitude of input data"},{"name":"model","in":"query","required":true,"schema":{"type":"string","description":"Elevation model ID, from /elevation/api/models/v1","title":"Model"},"description":"Elevation model ID, from /elevation/api/models/v1"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ElevationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/elevation/api/points/v1":{"post":{"summary":"List of points elevation (REST compliant)","description":"Elevations of a list of points, posted as JSON.","operationId":"elevations_elevation_api_points_v1_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationList"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List of points elevation (Google API compliant)","description":"Elevations of a list of points. Same input and output format as the Google Elevation API.","operationId":"elevations_google_format_elevation_api_points_v1_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"locations","in":"query","required":true,"schema":{"type":"string","description":"List of lat,lon separated by pipe","examples":["40.714,-73.998|34.052,-118.243"],"title":"Locations"},"description":"List of lat,lon separated by pipe"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ElevationModels":{"properties":{"elevation_models":{"items":{"type":"string"},"type":"array","title":"Elevation Models","description":"Model IDs accepted by the `model` parameter of /elevation/api/point/v0"}},"type":"object","required":["elevation_models"],"title":"ElevationModels"},"ElevationOut":{"properties":{"elevation":{"anyOf":[{"type":"number","maximum":9000.0,"minimum":-11100.0},{"type":"null"}],"title":"Elevation","description":"Elevation from the Mean Sea Level"},"lat":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude","description":"Latitude of the location"},"lon":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude","description":"Longitude of the the location"},"elevation_model":{"type":"string","title":"Elevation Model","description":"ID of the model the elevation comes from"}},"additionalProperties":false,"type":"object","required":["elevation","lat","lon","elevation_model"],"title":"ElevationOut"},"GoogleResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/GoogleResult"},"type":"array","title":"Results"},"status":{"$ref":"#/components/schemas/ResultStatusEnum","default":"OK"}},"type":"object","required":["results"],"title":"GoogleResponse"},"GoogleResult":{"properties":{"elevation":{"anyOf":[{"type":"number","maximum":9000.0,"minimum":-11100.0},{"type":"null"}],"title":"Elevation","description":"Elevation from the Mean Sea Level"},"location":{"$ref":"#/components/schemas/Location"},"resolution":{"type":"string","title":"Resolution"}},"type":"object","required":["elevation","location","resolution"],"title":"GoogleResult"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Location":{"properties":{"lat":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude","description":"Latitude of the location"},"lon":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude","description":"Longitude of the the location"}},"additionalProperties":false,"type":"object","required":["lat","lon"],"title":"Location"},"LocationList":{"properties":{"locations":{"items":{"$ref":"#/components/schemas/Location"},"type":"array","title":"Locations"}},"additionalProperties":false,"type":"object","required":["locations"],"title":"LocationList"},"ResultStatusEnum":{"type":"string","enum":["OK","REQUEST_DENIED","INVALID_REQUEST","UNKNOWN_ERROR"],"title":"ResultStatusEnum"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}