Use the Elevations API to get elevation information for a set of locations, polyline or area on the Earth.
https://msdn.microsoft.com/en-us/library/jj158961.aspx.
More...
|
| static OnlineMapsBingMapsElevation | GetElevationByPoints (string key, IEnumerable points, Heights heights=Heights.sealevel, Output output=Output.json) |
| | Get the elevations for each set of coordinates.
|
| |
| static OnlineMapsBingMapsElevation | GetElevationByPolyline (string key, IEnumerable points, int samples, Heights heights=Heights.sealevel, Output output=Output.json) |
| | A polyline path is computed from the coordinates, and then elevation values at both endpoints and equally-spaced locations along the polyline are returned.
|
| |
| static OnlineMapsBingMapsElevation | GetElevationByBounds (string key, double leftLongitude, double topLatitude, double rightLongitude, double bottomLatitude, int rows, int cols, Heights heights=Heights.sealevel, Output output=Output.json) |
| | The rectangular area defined by the four bounding box coordinates is divided into rows and columns.
The edges of the bounding box account for two of the rows and two of the columns.
Elevations are returned for the vertices of the grid created by the rows and columns.
|
| |
| static OnlineMapsBingMapsElevation | GetSeaLevel (string key, IEnumerable points, Output output=Output.json) |
| | This request returns the offset in meters of the geoid model (heights=sealevel) from the ellipsoid model (heights=ellipsoid) at each location (difference = geoid_sealevel - ellipsoid_sealevel).
|
| |
| static OnlineMapsBingMapsElevationResult | GetResult (string response, Output outputType) |
| | Converts the response string to response object.
|
| |
| static bool | ParseElevationArray (string response, Output outputType, ref Array array) |
| | Fast way get the elevation values without parsing JSON or XML.
|
| |
|
|
void | Destroy () |
| | Destroys the current request to webservice.
|
| |
| OnlineMapsWWW | GetWWW () |
| | Get request instance.
|
| |
|
Action< string > | OnComplete |
| | Event that occurs when a response is received from webservice.
|
| |
|
new Action< OnlineMapsTextWebService > | OnFailed |
| | Event that occurs when an error response is received from webservice.
|
| |
|
new Action< OnlineMapsTextWebService > | OnFinish |
| | This event is occurs after other events, before disposing the request.
|
| |
|
new Action< OnlineMapsTextWebService > | OnSuccess |
| | Event that occurs when a success response is received from webservice.
|
| |
|
Action< OnlineMapsWebServiceAPI > | OnFailed |
| | Event that occurs when an error response is received from webservice.
|
| |
|
Action< OnlineMapsWebServiceAPI > | OnFinish |
| | Event that occurs after OnComplete, when the response from webservice processed.
|
| |
|
Action< OnlineMapsWebServiceAPI > | OnDispose |
| | Event that occurs when the current request instance is disposed.
|
| |
|
Action< OnlineMapsWebServiceAPI > | OnSuccess |
| | Event that occurs when a success response is received from webservice.
|
| |
|
object | customData |
| | In this variable you can put any data that you need to work with requests.
|
| |
|
void | OnRequestComplete (OnlineMapsWWW www) |
| | Checks whether the response from webservice.
|
| |
|
string | _response |
| | Response string.
|
| |
| string | response [get] |
| | Gets a response from webservice.
|
| |
| OnlineMapsQueryStatus | status [get] |
| | Gets the current status of the request to webservice.
|
| |
Use the Elevations API to get elevation information for a set of locations, polyline or area on the Earth.
https://msdn.microsoft.com/en-us/library/jj158961.aspx.
◆ GetElevationByBounds()
| static OnlineMapsBingMapsElevation OnlineMapsBingMapsElevation.GetElevationByBounds |
( |
string | key, |
|
|
double | leftLongitude, |
|
|
double | topLatitude, |
|
|
double | rightLongitude, |
|
|
double | bottomLatitude, |
|
|
int | rows, |
|
|
int | cols, |
|
|
Heights | heights = Heights::sealevel, |
|
|
Output | output = Output::json ) |
|
static |
The rectangular area defined by the four bounding box coordinates is divided into rows and columns.
The edges of the bounding box account for two of the rows and two of the columns.
Elevations are returned for the vertices of the grid created by the rows and columns.
- Parameters
-
| key | A Bing Maps Key. |
| leftLongitude | Left longitude |
| topLatitude | Top latitude |
| rightLongitude | Right longitude |
| bottomLatitude | Bottom latitude |
| rows | Number of rows to use to divide the bounding box area into a grid. |
| cols | Number of columns to use to divide the bounding box area into a grid. |
| heights | Specifies which sea level model to use to calculate elevation. |
| output | Output format: JSON or XML |
- Returns
- Instance of request.
◆ GetElevationByPoints()
| static OnlineMapsBingMapsElevation OnlineMapsBingMapsElevation.GetElevationByPoints |
( |
string | key, |
|
|
IEnumerable | points, |
|
|
Heights | heights = Heights::sealevel, |
|
|
Output | output = Output::json ) |
|
static |
Get the elevations for each set of coordinates.
- Parameters
-
| key | A Bing Maps Key. |
| points | A set of coordinates on the Earth to use in elevation calculations.
IEnumerable values can be float, double or Vector2. |
| heights | Specifies which sea level model to use to calculate elevation. |
| output | Output format: JSON or XML |
- Returns
- Instance of request.
◆ GetElevationByPolyline()
| static OnlineMapsBingMapsElevation OnlineMapsBingMapsElevation.GetElevationByPolyline |
( |
string | key, |
|
|
IEnumerable | points, |
|
|
int | samples, |
|
|
Heights | heights = Heights::sealevel, |
|
|
Output | output = Output::json ) |
|
static |
A polyline path is computed from the coordinates, and then elevation values at both endpoints and equally-spaced locations along the polyline are returned.
- Parameters
-
| key | A Bing Maps Key. |
| points | A set of coordinates on the Earth to use in elevation calculations.
IEnumerable values can be float, double or Vector2. |
| samples | Specifies the number of equally-spaced elevation values to provide along a polyline path. |
| heights | Specifies which sea level model to use to calculate elevation. |
| output | Output format: JSON or XML |
- Returns
- Instance of request.
◆ GetResult()
Converts the response string to response object.
- Parameters
-
| response | Response string |
| outputType | Format of response string (JSON or XML) |
- Returns
- Response object
◆ GetSeaLevel()
| static OnlineMapsBingMapsElevation OnlineMapsBingMapsElevation.GetSeaLevel |
( |
string | key, |
|
|
IEnumerable | points, |
|
|
Output | output = Output::json ) |
|
static |
This request returns the offset in meters of the geoid model (heights=sealevel) from the ellipsoid model (heights=ellipsoid) at each location (difference = geoid_sealevel - ellipsoid_sealevel).
- Parameters
-
| key | A Bing Maps Key. |
| points | A set of coordinates on the Earth to use in elevation calculations.
IEnumerable values can be float, double or Vector2. |
| output | Output format: JSON or XML |
- Returns
- Instance of request.
◆ ParseElevationArray()
| static bool OnlineMapsBingMapsElevation.ParseElevationArray |
( |
string | response, |
|
|
Output | outputType, |
|
|
ref Array | array ) |
|
static |
Fast way get the elevation values without parsing JSON or XML.
- Parameters
-
| response | Response string |
| outputType | Format of response string (JSON or XML) |
| array | Reference to an array where the values will be stored.
Supports one-dimensional and two-dimensional arrays. |
- Returns
- TRUE - success, FALSE - failed.