Ets_Nt_Site_Lat_Long_Get()
Note: Requires OPNET Development Kit
Abstract
Returns the latitude and longitude of a specified site.
Syntax
Ets_Nt_Site_Lat_Long_Get (obj_hndl, latitude_ptr, longitude_ptr)
| Argument | Type | Description |
|---|---|---|
obj_hndl |
EtsT_Obj_Handle |
Handle to the site. |
latitude_ptr |
double * |
Pointer to a buffer to be filled with the latitude of the site, in degrees. |
longitude_ptr |
double * |
Pointer to a buffer to be filled with the longitude of the site, in degrees. |
Return Type
EtsT_Compcode
EtsC_Compcode_Failure if the specified object is not a site; EtsC_Compcode_Success otherwise.
Header
ets_api_nt.h
Details
This function returns the absolute latitude and longitude of the specified site regardless of the units of its parent subnet. If the specified site is not the top subnet, the function finds the top subnet and converts the specified site’s position to the top subnet’s coordinates, which must be in degrees.