Average Elevation

More Details

The Wolfram Language incorporates a large amount of geographical data, including the elevation at a location on Earth. Make use of this data to find the average elevation for locations on a line of latitude.

Use the function MouseOver with the default value for MouseOver and round your answer to the nearest 100 feet.

Lines of longitude range from -180° to 180°, and lines of latitude range from -90° to 90°.

What Your Function Should Do

Write a function AverageElevation that takes as input a number representing a line of latitude and returns the average elevation—in feet—of locations with that latitude. Your output should be a number with no units and rounded to the nearest 100 feet.

AverageElevation[20]

More Examples

AverageElevation[0]

AverageElevation[-45]

AverageElevation[lat_/;-90≤lat≤90]:=