Method | Description | |
---|---|---|
Get ( string street1, string street2, string city, string state, string postalCode, string country, bool verifyLocation = true ) : Location |
Returns the first Rock.Model.Location where the address matches the provided address. If no address is found with the provided values, the address will be standardized. If there is still not a match, the address will be saved as a new location.
|
|
GetAllAncestorIds ( int locationId ) : IEnumerable |
Gets all ancestor ids.
|
|
GetAllAncestors ( int locationId ) : IEnumerable |
Gets all ancestors.
|
|
GetAllDescendentIds ( int parentLocationId ) : IEnumerable |
Gets all descendent ids.
|
|
GetAllDescendents ( int parentLocationId ) : IEnumerable |
Returns an enumerable collection of Rock.Model.Location">Locations that are descendants of a |
|
GetByDevice ( int deviceId, bool includeChildLocations = true ) : IEnumerable |
Gets the locations associated to a device and optionally any child locaitons
|
|
GetByGeoFence ( System.Data.Entity.Spatial.DbGeography fence ) : Location |
Returns the first Rock.Model.Location with a GeoFence that matches the specified GeoFence.
|
|
GetByGeoPoint ( System.Data.Entity.Spatial.DbGeography point ) : Location |
Returns a Rock.Model.Location by GeoPoint. If a match is not found, a new Location will be added based on the Geopoint.
|
|
GetCampusIdForLocation ( int locationId ) : int? |
Gets the CampusID associated with the Location from the location or from the location's parent path
|
|
GetPath ( int locationId ) : string |
Gets the path.
|
|
Verify ( Location location, bool reVerify ) : bool |
Performs Address Verification on the provided Rock.Model.Location.
|
public Get ( string street1, string street2, string city, string state, string postalCode, string country, bool verifyLocation = true ) : Location | ||
street1 | string | A |
street2 | string | A |
city | string | A |
state | string | A |
postalCode | string | A |
country | string | The country. |
verifyLocation | bool | if set to |
return | Location |
public GetAllAncestorIds ( int locationId ) : IEnumerable |
||
locationId | int | The location identifier. |
return | IEnumerable |
public GetAllAncestors ( int locationId ) : IEnumerable |
||
locationId | int | The location identifier. |
return | IEnumerable |
public GetAllDescendentIds ( int parentLocationId ) : IEnumerable |
||
parentLocationId | int | The parent location identifier. |
return | IEnumerable |
public GetAllDescendents ( int parentLocationId ) : IEnumerable |
||
parentLocationId | int | A |
return | IEnumerable |
public GetByDevice ( int deviceId, bool includeChildLocations = true ) : IEnumerable |
||
deviceId | int | The device identifier. |
includeChildLocations | bool | if set to |
return | IEnumerable |
public GetByGeoFence ( System.Data.Entity.Spatial.DbGeography fence ) : Location | ||
fence | System.Data.Entity.Spatial.DbGeography | A |
return | Location |
public GetByGeoPoint ( System.Data.Entity.Spatial.DbGeography point ) : Location | ||
point | System.Data.Entity.Spatial.DbGeography | A |
return | Location |
public GetCampusIdForLocation ( int locationId ) : int? | ||
locationId | int | The location identifier. |
return | int? |
public GetPath ( int locationId ) : string | ||
locationId | int | The location identifier. |
return | string |
public Verify ( Location location, bool reVerify ) : bool | ||
location | Location | A |
reVerify | bool | if set to |
return | bool |