Delen via


GeocodingQuery Class

Definition

Options.

public class GeocodingQuery
type GeocodingQuery = class
Public Class GeocodingQuery
Inheritance
GeocodingQuery

Constructors

GeocodingQuery()

Properties

AddressLine

The official street line of an address relative to the area, as specified by the locality, or postalCode, properties. Typical use of this element would be to provide a street address or any official address.

AdminDistrict

The country subdivision portion of an address, such as WA. If query is given, should not use this parameter.

AdminDistrict2

The county for the structured address, such as King. If query is given, should not use this parameter.

AdminDistrict3

The named area for the structured address. If query is given, should not use this parameter.

BoundingBox

A rectangular area on the earth defined as a bounding box object. The sides of the rectangles are defined by longitude and latitude values. When you specify this parameter, the geographical area is taken into account when computing the results of a location query. Example: GeoBoundingBox(west, south, east, north).

Coordinates

A point on the earth specified as a longitude and latitude. When you specify this parameter, the user’s location is taken into account and the results returned may be more relevant to the user. Example: GeoPosition(lon, lat)

CountryRegion

Signal for the geocoding result to an ISO 3166-1 Alpha-2 region/country code that is specified e.g. FR.

Locality

The locality portion of an address, such as Seattle. If query is given, should not use this parameter.

LocalizedMapView

A string that represents an ISO 3166-1 Alpha-2 region/country code. This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request. Please refer to Supported Views for details and to see the available Views.

OptionalId

id of the request which would show in corresponding batchItem.

PostalCode

The postal code portion of an address. If query is given, should not use this parameter.

Query

A string that contains information about a location, such as an address or landmark name..

Top

Maximum number of responses that will be returned. Default: 5, minimum: 1 and maximum: 20.

Applies to