How do you create a streetlink and what can it do?
To create a street link:
GeoCodeFull fullres = GeoCoder.ReverseGeoCodeFull( new LatLon(34, -118) );
Now fullres.StreetLink contains the street link object for that street.
Alternatively, you can query all the street links within a bounding box:
// cnr1 and cnr2 are latlons representing two opposite corners of the box BoundingBox bbox = new BoundingBox( cnr1, cnr2 ); StreetLink[] links = DataQuery.QueryLinks(bbox.Rectangle); StreetLinkCollection slc = new StreetLinkCollection(links);
The StreetLink object has street flags, addressing information and street geometry. The StreetLinkCollection object allows you to render the street links, and can also be treated as a geofence.
Published, May 17th 2009, 19:02
