HERE Android SDK Developer's Guide

CLE2CorridorRequest

The class CLE2CorridorRequest is a member of com.here.android.mpa.customlocation2 .

Class Summary

public class CLE2CorridorRequest

extends com.here.android.mpa.customlocation2.CLE2Request, java.lang.Object

Represents an corridor custom location search request to retrieve user-defined geometries previously stored using one or more search filter(s).

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in CLE2CorridorRequest
Constructors

CLE2CorridorRequest (String layerId, java.util.List <GeoCoordinate> routeCoordinates, int radius)

Creates an Corridor Request using an array of coordinates defining a route.

Class Details

Represents an corridor custom location search request to retrieve user-defined geometries previously stored using one or more search filter(s).

This searches for user-defined geometries within the radius of a specified route or the radius of a specified list of GeoCoordinates.

A new CLE2CorridorRequest should be created for each search.

Constructor Details

CLE2CorridorRequest (String layerId, java.util.List <GeoCoordinate> routeCoordinates, int radius)

Creates an Corridor Request using an array of coordinates defining a route.

Parameters:

  • layerId

    Name of layer specifying the layer to search.

  • routeCoordinates

    A List of GeoCoordinates representing the polyline used as a corridor center line representing a route.

  • radius

    An int specifying the search radius in meters.

Throws:

  • IllegalArgumentException

    if layerId is invalid.

  • IllegalArgumentException

    if routeCoordinates is null or does not contain at least two GeoCoordinates.

  • IllegalArgumentException

    if radius is smaller than or equal to zero.