Geocoderequest, Geocoderesponse, Geocodeclientfactory – Pitney Bowes MapXtreme User Manual

Page 330

Advertising
background image

Chapter 18: Geocoding

Main Geocoding Classes

MapXtreme v7.1

337

Developer Guide

The following diagram illustrates the interfaces and classes that make up the Geocoding
namespace:

GeocodeRequest

The GeocodeRequest class sends a request to the geocoding server or service. Its properties
include AddressList, a list of addresses to be geocoded, and Length, the number of items in the
address list. Input addresses can include a variety of information, including street address or
intersection, primary and secondary postal code, and country code.

GeocodeResponse

The GeocodeResponse class contains a response for each address in the GeocodeRequest. The
response contains address candidates, which are those addresses considered to be possible
matches for the input address. Note that a GeocodeRequest that contains multiple addresses will
yield a GeocodeResponse object that includes a list of candidate addresses for each input address.

GeocodeClientFactory

This class returns an IGeocodeClient which you use to send a GeocodeRequest and receive a
GeocodeResponse. The method GetMmjHttpClient uses the geocoding client that speaks to an
instance of the MapInfo MapMarker Java servlet. Use the method GetEnvinsaGeocodeClient to
send requests to the Location Utility Service in MapInfo Envinsa 4.0.

Advertising