complexType DistanceRequest
diagram geometry_p81.png
namespace http://www.mapinfo.com/midev/service/geometry/v1
type extension of tns:GeometryServiceRequest
properties
base   tns:GeometryServiceRequest
children tns:FirstGeometry tns:SecondGeometry
used by
element   DistanceRequest
attributes
Name    Type    Use    Default    Fixed    Annotation
id    xsd:string    optional         
A unique identifier that is returned in the response. It is used for debugging or keeping track of asynchronous requests.
locale    xsd:string    optional         
The language and country code of the request, which is defined using [language_code]_[country_code] syntax. The language code is a 2-letter ISO-639 code. The country code is a 2-letter ISO-3166 code. For example: en_US stands for the English language within the United States of America.
responseSrsName    xsd:string    optional         
The spatial reference system to express the response in.
computationType    tns:ComputationType    optional         
The computation type to use, either Cartesian or Spherical. If you do not specify this, then this method uses the coordinate system type of the first geometry in the calculation. Spherical computations can be used for any geometry. Cartesian calculations can only be used when the first geometry is Cartesian.
distanceUnit    tns:DistanceUnit    required         
The distance units to use (e.g. kilometer).
description
A request to calculate the distance between the two supplied geometries using the supplied computation type and distance units. Specifically, the distance between two closest points of the two geometries is determined.

attribute DistanceRequest/@computationType
type tns:ComputationType
properties
use   optional
facets
Kind   Value   Annotation
enumeration   Spherical
The geometry is treated as points on a sphere and can be used with geographic (LongLat) and projected coordinate systems.
enumeration   Cartesian
The geometry is treated as points on a flat plane and can be used with projected and non-earth coordinate systems.
description
The computation type to use, either Cartesian or Spherical. If you do not specify this, then this method uses the coordinate system type of the first geometry in the calculation. Spherical computations can be used for any geometry. Cartesian calculations can only be used when the first geometry is Cartesian.

attribute DistanceRequest/@distanceUnit
type tns:DistanceUnit
properties
use   required
facets
Kind   Value   Annotation
enumeration   Centimeter
The distance unit for: centimeter.
enumeration   cm
The distance unit for: centimeter.
enumeration   Chain
The distance unit for: chain.
enumeration   Foot
The distance unit for: foot.
enumeration   ft
The distance unit for: foot.
enumeration   Inch
The distance unit for: inch.
enumeration   in
The distance unit for: inch.
enumeration   Kilometer
The distance unit for: kilometer.
enumeration   km
The distance unit for: kilometer.
enumeration   Link
The distance unit for: link.
enumeration   Meter
The distance unit for: meter.
enumeration   m
The distance unit for: meter.
enumeration   Mile
The distance unit for: mile.
enumeration   mi
The distance unit for: mile.
enumeration   Millimeter
The distance unit for: millimeter.
enumeration   mm
The distance unit for: millimeter.
enumeration   NauticalMile
The distance unit for: nautical mile.
enumeration   Pica
The distance unit for: pica.
enumeration   Point
The distance unit for: point.
enumeration   Rod
The distance unit for: rod.
enumeration   SurveyFoot
The distance unit for: survey foot.
enumeration   Twip
The distance unit for: twip.
enumeration   Yard
The distance unit for: yard.
enumeration   yd
The distance unit for: yard.
description
The distance units to use (e.g. kilometer).

element DistanceRequest/FirstGeometry
diagram geometry_p82.png
namespace http://www.mapinfo.com/midev/service/geometry/v1
type tns:Geometry
properties
content   complex
attributes
Name    Type    Use    Default    Fixed    Annotation
srsName    xsd:string    optional         
The spatial reference system name associated with this geometry.
description
The first geometry.

element DistanceRequest/SecondGeometry
diagram geometry_p83.png
namespace http://www.mapinfo.com/midev/service/geometry/v1
type tns:Geometry
properties
content   complex
attributes
Name    Type    Use    Default    Fixed    Annotation
srsName    xsd:string    optional         
The spatial reference system name associated with this geometry.
description
The second geometry.



© 2016 Pitney Bowes Software Inc. Email: pbbi.support@pb.com