PlatformDataRequest
The class PlatformDataRequest is a member of com.here.android.mpa.pde .
Class Summary
public final class PlatformDataRequest
extends java.lang.Object
Runs the Platform Data Extension request with the given parameters.
[For complete information, see the section Class Details]
Nested Class Summary
Nested Classes |
---|
Represents error reported by the Platform Data Extension server. |
Represents an event listener that reports information about the completion of a request. |
Method Summary
Methods |
---|
Creates a data request with the specified layers and GeoBoundingBox instance. |
Creates a data request with the specified layers and permanent link ids (see RoadElement). |
Creates a data request with the specified static layer. |
Invokes the data request with the specified listener. |
Class Details
Runs the Platform Data Extension request with the given parameters.
Method Details
public static PlatformDataRequest createBoundingBoxRequest (Set layers, GeoBoundingBox geoBoundingBox)
Creates a data request with the specified layers and GeoBoundingBox instance.
Parameters:
-
layers
Names of layers from which the data should be fetched.
-
geoBoundingBox
Area for which the data should be fetched.
Returns:
PlatformDataRequest instance.
Throws:
-
IllegalArgumentException
in case of invalid arguments.
public static PlatformDataRequest createLinkIdsRequest (Set layers, Set linkIds)
Creates a data request with the specified layers and permanent link ids (see RoadElement).
Parameters:
-
layers
Names of layers from which the data should be fetched.
-
linkIds
The permanent link ids to be searched in the layers specifed.
Returns:
PlatformDataRequest instance.
Throws:
-
IllegalArgumentException
in case of invalid arguments.
public static PlatformDataRequest createStaticLayerRequest (String layer)
Creates a data request with the specified static layer. Note that a static layer doesn't require any bounding box or link ids to collect data.
Parameters:
-
layer
The name of the static layer.
Returns:
If the parameter is valid, an PlatformDataRequest object configured with the parameter and null otherwise.
Throws:
-
IllegalArgumentException
in case of invalid arguments.
public void execute (Listener<PlatformDataResult> listener)
Invokes the data request with the specified listener.
Parameters:
-
listener
Listener to which the result will be passed.