Telogis.GeoBase.AutocompleteGeocoder.Suggestion |
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.
Name | Description |
---|---|
getBoundingBox () | Gets the bouding box of the region which this suggestion represents. ReturnsLatLon - 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. ReturnsLatLon - 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. ReturnsString - The name of this region or street. |
getStreetNumber () | Gets the street number of this suggestion. ReturnsNumber - 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. ReturnsBoolean - 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. ReturnsBoolean - 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. ReturnsBoolean - Returns true if this suggestion is a street-name-only suggestion, otherwise returns false. |
toString () | Gets the full name of the suggestion. ReturnsString - The full name of the suggestion. |