MapsGeofenceGeometry Class
- java.
lang. Object - com.
microsoft. azure. eventgrid. models. MapsGeofenceGeometry
- com.
public class MapsGeofenceGeometry
The geofence geometry.
Constructor Summary
Constructor | Description | |
---|---|---|
MapsGeofenceGeometry() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
deviceId()
Get iD of the device. |
java.lang.Double |
distance()
Get distance from the coordinate to the closest border of the geofence. |
java.lang.String |
geometryId()
Get the unique ID for the geofence geometry. |
java.lang.Double |
nearestLat()
Get latitude of the nearest point of the geometry. |
java.lang.Double |
nearestLon()
Get longitude of the nearest point of the geometry. |
java.lang.String |
udId()
Get the unique id returned from user upload service when uploading a geofence. |
Maps |
withDeviceId(String deviceId)
Set iD of the device. |
Maps |
withDistance(Double distance)
Set distance from the coordinate to the closest border of the geofence. |
Maps |
withGeometryId(String geometryId)
Set the unique ID for the geofence geometry. |
Maps |
withNearestLat(Double nearestLat)
Set latitude of the nearest point of the geometry. |
Maps |
withNearestLon(Double nearestLon)
Set longitude of the nearest point of the geometry. |
Maps |
withUdId(String udId)
Set the unique id returned from user upload service when uploading a geofence. |
Methods inherited from java.lang.Object
Constructor Details
MapsGeofenceGeometry
public MapsGeofenceGeometry()
Method Details
deviceId
public String deviceId()
Get iD of the device.
Returns:
distance
public Double distance()
Get distance from the coordinate to the closest border of the geofence. Positive means the coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more than the value of searchBuffer away from the closest geofence border, then the value is 999. Negative means the coordinate is inside of the geofence. If the coordinate is inside the polygon, but more than the value of searchBuffer away from the closest geofencing border,then the value is -999. A value of 999 means that there is great confidence the coordinate is well outside the geofence. A value of -999 means that there is great confidence the coordinate is well within the geofence.
Returns:
geometryId
public String geometryId()
Get the unique ID for the geofence geometry.
Returns:
nearestLat
public Double nearestLat()
Get latitude of the nearest point of the geometry.
Returns:
nearestLon
public Double nearestLon()
Get longitude of the nearest point of the geometry.
Returns:
udId
public String udId()
Get the unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API.
Returns:
withDeviceId
public MapsGeofenceGeometry withDeviceId(String deviceId)
Set iD of the device.
Parameters:
Returns:
withDistance
public MapsGeofenceGeometry withDistance(Double distance)
Set distance from the coordinate to the closest border of the geofence. Positive means the coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more than the value of searchBuffer away from the closest geofence border, then the value is 999. Negative means the coordinate is inside of the geofence. If the coordinate is inside the polygon, but more than the value of searchBuffer away from the closest geofencing border,then the value is -999. A value of 999 means that there is great confidence the coordinate is well outside the geofence. A value of -999 means that there is great confidence the coordinate is well within the geofence.
Parameters:
Returns:
withGeometryId
public MapsGeofenceGeometry withGeometryId(String geometryId)
Set the unique ID for the geofence geometry.
Parameters:
Returns:
withNearestLat
public MapsGeofenceGeometry withNearestLat(Double nearestLat)
Set latitude of the nearest point of the geometry.
Parameters:
Returns:
withNearestLon
public MapsGeofenceGeometry withNearestLon(Double nearestLon)
Set longitude of the nearest point of the geometry.
Parameters:
Returns:
withUdId
public MapsGeofenceGeometry withUdId(String udId)
Set the unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for