HERE Android SDK Developer's Guide

CLE2ProximityRequest

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

Class Summary

public class CLE2ProximityRequest

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

Represents a custom geometry search request that uses the area around a location to retrieve user-defined geometries.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in CLE2ProximityRequest
Constructors

CLE2ProximityRequest (String layerId, GeoCoordinate center, int radius)

Creates a Proximity Request

CLE2ProximityRequest (List layerIds, GeoCoordinate center, int radius)

Creates a Proximity Request that searches through multiple layers.

Class Details

Represents a custom geometry search request that uses the area around a location to retrieve user-defined geometries.

This type of search request is used for user-defined geometries around a specified point.

A new CLE2ProximityRequest should be created for each search.

Constructor Details

CLE2ProximityRequest (String layerId, GeoCoordinate center, int radius)

Creates a Proximity Request

Parameters:

  • layerId

    Name of layer specifying the layer to search.

  • center

    A GeoCoordinate specifying the search center.

  • radius

    An int specifying the search radius in meters.

Throws:

  • IllegalArgumentException

    if center is invalid.

  • IllegalArgumentException

    if radius is smaller than or equal to zero.

CLE2ProximityRequest (List layerIds, GeoCoordinate center, int radius)

Creates a Proximity Request that searches through multiple layers.

Parameters:

  • layerIds

    List of layers name specifying the layer to search.

  • center

    A GeoCoordinate specifying the search center.

  • radius

    An int specifying the search radius in meters.

Throws:

  • IllegalArgumentException

    if center is invalid.

  • IllegalArgumentException

    if radius is smaller than or equal to zero.