Skip to content

Titanium.Geolocation.ForwardGeocodeResponse

Simple object returned in the callback from the forwardGeocoder method.

Note that Android includes a number of extra fields.

Extends: ErrorResponse · Platforms: android, iphone, ipad, macos

Properties #

accuracy#

Type: Number

Estimated accuracy of the geocoding, in meters.

address#

Type: String

Full address.

city#

Type: String

City name.

code#

Type: Number

Error code. Returns 0 if success is true.

Error code will be 0 if success is true, nonzero otherwise. If the error
was generated by the operating system, that system's error value is used.
Otherwise, this value will be -1.

country#

Type: String

Country name.

country_code#

Type: String

Country code. Same as countryCode.

countryCode#

Type: String

Country code.

displayAddress#

Type: String

Display address. Identical to address.

error#

Type: String

Error message, if any returned.

Will be undefined if success is true.

latitude#

Type: String

Latitude of the geocoded address.

longitude#

Type: String

Longitude of the geocoded address.

postalCode#

Type: String

Postal code.

region1#

Type: String

First line of region.

region2#

Type: String

Not used.

street#

Type: String

Street name, without street address.

street1#

Type: String

Street name.

success#

Type: Boolean

Indicates if the operation succeeded.

Returns true if request succeeded, false otherwise.

Titanium SDK Documentation