IDOL Content Component 24.4
IDOL Content Component Help

# Fields that are within a Specified Distance from a Specified Point

## DISTCARTESIAN

The `DISTCARTESIAN` field specifier allows you to find documents that contain fields that define a point (X and Y coordinates) or region that is within a specified distance from a specified point.

You can specify the document position fields either as a pair of fields (corresponding to X and Y coordinate fields), or as a single field (for example a unified GeospatialType field).

    FieldText=DISTCARTESIAN{coordX,coordY,dist}:POSITION

The following example matches all documents whose (X,Y) position is within a distance of 5 units of the point (10,11). The position of a document in this example is contained in the `POSITION` field.

    FieldText=DISTCARTESIAN{10,11,5}:POSITION

For more information about using this field specifier, refer to the IDOL Content Component Reference.

## DISTSPHERICAL

The `DISTSPHERICAL` field specifier allows you to find documents that contain location fields that define a point (latitude and longitude) or region that is within a specified distance from a specified point.

You can specify the document location fields either as a pair of fields (corresponding to latitude and longitude fields), or as a single field (for example a unified GeospatialType field).

    FieldText=DISTSPHERICAL{lat,long,dist}:LOCATION

The following example matches all documents whose position is within a 20 kilometer radius of San Francisco (37.75N,122.4W). The latitude and longitude position of a document in this example is contained in the fields `LAT` and `LONG`, respectively.

    FieldText=DISTSPHERICAL{37.75,-122.4,20}:LAT:LONG

The following example matches all documents whose position is within a 20 kilometer radius of Cambridge (52.2N,0.1W). The latitude and longitude position of a document in this example is contained in the `LOCATION` field.

    FieldText=DISTSPHERICAL{52.2,0.1,20}:LOCATION

For more information about using this field specifier, refer to the IDOL Content Component Reference.

Copyright 2024 Open Text
Version 24.4 | Last updated September 2024

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL IDOL Content Component 24.4

Topic Title: Fields that are within a Specified Distance from a Specified Point