Share via


GeocodeRequest Class

 

This documentation is no longer available on MSDN. It is available as a CHM or PDF download. For the newest Geocoding, Imagery, Routing and Traffic services, see Bing Maps REST Services. 

Contains the properties needed to make a Geocode service request. This class inherits from the RequestBase Class.

Syntax

public class GeocodeRequest : RequestBase
Public Class GeocodeRequest Inherits RequestBase

Constructor

Name

Description

GeocodeRequest

Initializes a new instance of a GeocodeRequest object.

Public Properties

Name

Description

Address

An Address Class object specifying the address to match to a coordinate on the map. Optional. Either the Address or Query property must be set.

Credentials

A Credentials Class object that identifies the requestor. Required. (Inherited from the RequestBase Class.)

Culture

A string specifying the culture in which to return results. Optional. The default value is "en-US". (Inherited from the RequestBase Class.)

ExecutionOptions

An ExecutionOptions Class object specifying calculation and return options of the request. Optional. (Inherited from the RequestBase Class.)

Options

A GeocodeOptions Class object used to refine the geocode request. Optional.

Query

A string containing the query to parse and match to a coordinate on the map. Optional. Either the Address or Query property must be set.

UserProfile

A UserProfile Class object containing user information helpful in service calculations. Optional. (Inherited from the RequestBase Class.)

See Also

GeocodeServiceClient.Geocode Method