gdlManhattanDistance - geographicdeterminationlibrary - 2024.00

Geographic Determination Library Reference for Windows and z/OS

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > Geographic Determination Library
Version
2024.00
Language
English
Product name
GeoStan Geocoding Suite
Title
Geographic Determination Library Reference for Windows and z/OS
Copyright
2024
First publish date
1994
Last updated
2024-05-09
Published on
2024-05-09T00:55:21.277227

Determines the Manhattan distance between a point and another point.

Syntax

intl gdlManhattanDistance( gdlHandle hGdl, gdlShape point1, gdlShape point2, intl* distance );

Arguments

hGdl

The gdlHandle initialized by gdlInitialize. Input.

point1

Pointer to a gdlShape that contains the geocode coordinates representing the first point. Input.

point2

Pointer to a gdlShape that contains the geocode coordinates representing the second point. Input.

distance

The distance in feet. Output.

Return values

GDL_NOT_LICENSED

GDL_WRONG_TYPE

GDL_ERROR

GDL_OK

Prerequisites

gdlShapeCreate or gdlGenerateErrorSurface

Alternates

gdlDistance

Notes

The following diagram illustrates the Manhattan distance between two points: