Click or drag to resize

Telogis.GeoBase.AutocompleteGeocoder.Suggestion

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Suggestion Class

Two suggestion types are supported by this class: regions and street addresses. Region suggestions come with a bounding box value to be zoomed to on the map. A street address suggestion can be a street-name-only suggestion, which enables the user to select a whole street name instead of having to type it to the end, or a full address suggestion, which can describe a particular LatLon on the map along with the full name of the address.

Functions
NameDescription
getBoundingBox ()

Gets the bouding box of the region which this suggestion represents.

Returns

LatLon - The bounding box of the region. This method only returns a valid value when this suggestion is a region suggestion, otherwise it returns null.

getLocation ()

Gets the location of this suggestion.

Returns

LatLon - The location of this suggestion. If this is a street full address suggestion, this method is guaranteed to return a valid location. If this is a region suggestion, this method might return a valid location which is a representative location of the region, or it might return an invalid location in case we can't find a representative location. If this is a street-name-only suggestion, this method always returns an invalid location.

getName ()

Gets the name of this region or street.

Returns

String - The name of this region or street.

getStreetNumber ()

Gets the street number of this suggestion.

Returns

Number - Returns the street number if this suggestion is a street address and has a valid street number, otherwise returns -1.

hasValidStreetNumber ()

Indicates whether this suggestion has a valid street number.

Returns

Boolean - Returns true if this suggestion has a valid street number, otherwise returns false.

isRegion ()

Indicates whether this suggestion is a region or a street address.

Returns

Boolean - Returns true if this suggestion is a region suggestion, otherwise returns false.

isStreetNameOnly ()

Indicates whether this suggestion is a street-name-only suggestion, as opposed to a region suggestion or a street full address suggestion.

Returns

Boolean - Returns true if this suggestion is a street-name-only suggestion, otherwise returns false.

toString ()

Gets the full name of the suggestion.

Returns

String - The full name of the suggestion.