Class Maps
- Namespace
- Dynamicweb.Security.SystemTools
- Assembly
- Dynamicweb.Core.dll
Provides methods for working with google maps data
public class Maps
- Inheritance
-
Maps
- Inherited Members
Properties
GoogleMapsApiKeyValue
Gets google map api key
public static string GoogleMapsApiKeyValue { get; }
Property Value
- string
String value
GoogleMapsClientID
Gets google map client identifier
public static string GoogleMapsClientID { get; }
Property Value
- string
String value
Methods
Clamp(double, double, double)
Clamp a number to be inside a specified range
public static double Clamp(double value, double min, double max)
Parameters
valuedoublethe value
mindoubleminimum allowed value (inclusive)
maxdoublemaximum allowed value (inclusive)
Returns
- double
the clamped value
GeocodingResponse(string)
Gets geo coding response
public static string GeocodingResponse(string address)
Parameters
addressstringString value with address
Returns
- string
String value
GetGetLocationAddress(User, string)
Gets geo location address
public static string GetGetLocationAddress(User user, string delimiter = " ")
Parameters
Returns
- string
String value
GetGetLocationAddress(UserGroup, string)
Gets geo location address
public static string GetGetLocationAddress(UserGroup group, string delimiter = " ")
Parameters
Returns
- string
String value
GetLocation(string)
Gets location coordinates using address
public static GeoLocation? GetLocation(string address)
Parameters
addressstringAddress
Returns
- GeoLocation
Latitude and longitude values
SetGeolocationFromGoogleMaps(User, bool)
Sets geo location using google maps api data
public static GeoLocationStatus SetGeolocationFromGoogleMaps(User user, bool force = false)
Parameters
Returns
SetGeolocationFromGoogleMaps(UserGroup, bool)
Sets geo location using google maps api data
public static GeoLocationStatus SetGeolocationFromGoogleMaps(UserGroup group, bool force = false)
Parameters
Returns
Wrap(double, double, double)
Wrap a number to fit inside a specified range
public static double Wrap(double value, double min, double max)
Parameters
valuedoublethe value
mindoubleminimum allowed value (inclusive)
maxdoublemaximum allowed value (inclusive)
Returns
- double
the wrapped value