StreetData Class |
Namespace: Telogis.GeoBase
The StreetData type exposes the following members.
Name | Description | |
---|---|---|
City |
Returns the city that this street is in
null if such a thing is not present.
| |
CollatedName |
The name of the street (or streets if this object represents multiple streets).
| |
Country |
The name of the country.
| |
IndividualStreets |
If the StreetData represents multiple streets (IsSingular is false), IndividualStreets provides a StreetData object
for each of the individual streets that this StreetData describes.
| |
IsSingular |
True if this StreetData object describes a single street, False if it
describes multiple underlying streets.
| |
MaxAddress |
The largest lot number on the street.
| |
MinAddress |
The smallest lot number on the street.
| |
Names |
All the names of the street.
| |
Postcodes |
The postcodes of the street.
| |
State |
Returns the top level subdivision of a Country that this street is in
(could be state, prefecture, province, department, federal subject, district or region,
depending on the Country).
In smaller countries this could be the same as City.
| |
Suburb |
Returns the first subdivision of a city that this street is in
null if such a thing is not present. (It could be called suburb or neighborhood
depending on the Country).
|
Name | Description | |
---|---|---|
CompareTo |
Compare this StreetData object to another.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetAddressForMileMarker |
Get the location of the street.
| |
GetAddressLocation |
Get the location of a specified address.
| |
GetAddressRanges |
Get an array of the address ranges of the street. Each address range can be even numbers, odd numbers or simply a sequence of numbers.
| |
GetClosestIntersection |
Returns the intersection along a street that's closest to a given location.
| |
GetCrossStreets |
Get a list of all the streets that cross this street.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLocation |
Get the location of the street.
| |
GetMileMarkerRanges |
Get the ranges of milemarkers that can be queried from this street.
| |
GetStreetObjects |
Gets an array of Street objects, consisting of street links.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MatchesQuery |
Returns true of the query string matches the street name.
| |
ToGeocodeResult |
Returns the raw address used for a geocoding operation as a GeocodeResult.
| |
ToString |
Returns the string representation of the street, using the AddressFormatter.
(Overrides ObjectToString.) | |
ToStringNoNumber | Obsolete.
Returns a string representation of the street's region hierarchy, starting with the
street's name and region, but without postcode numbers.
|
Name | Description | |
---|---|---|
SearchText |
The search text that caused this StreetData to be returned by the DrillDownGeocoder.
In upper case.
|
Related articles: Drill-down Geocoder Tutorial.
// Create a drill down geocoder to search for a location in the USA DrillDownGeoCoder ddgc = new DrillDownGeoCoder(Country.USA); // Search for a region named 'Aliso Viejo' RegionSearchResult region_search = ddgc.GetRegions(2, "Aliso Viejo"); // Create a Region object using the region search result RegionData region = region_search.Results[0]; // Perform a street search for 'Enterprise' within the found region StreetSearchResult street_search_result = region.GetStreets("Enterprise"); // Create a list containing search results with a street numbers of 20 (drills down to 20, Enterprise, Aliso Viejo, USA) List<GeocodeAddress> addresses_list = street_search_result.Results[0].GetAddressLocation(20); // Check that the list isn't empty... if (addresses_list.Count != 0) { Console.WriteLine("First address found is '{0} in city '{1}' at location '{2}'.", addresses_list[0].ToString(), addresses_list[0].City, addresses_list[0].Location ); // Prints out >> First address found is '20 Enterprise, Aliso Viejo, California, // 92656, USA in city 'Aliso Viejo' at location '33.584362,-117.730968'. } else { Console.WriteLine("No results found!"); }