Table of Contents

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

value double

the value

min double

minimum allowed value (inclusive)

max double

maximum allowed value (inclusive)

Returns

double

the clamped value

GeocodingResponse(string)

Gets geo coding response

public static string GeocodingResponse(string address)

Parameters

address string

String value with address

Returns

string

String value

GetGetLocationAddress(User, string)

Gets geo location address

public static string GetGetLocationAddress(User user, string delimiter = " ")

Parameters

user User

User

delimiter string

String delimiter

Returns

string

String value

GetGetLocationAddress(UserGroup, string)

Gets geo location address

public static string GetGetLocationAddress(UserGroup group, string delimiter = " ")

Parameters

group UserGroup

UserGroup

delimiter string

String delimiter

Returns

string

String value

GetLocation(string)

Gets location coordinates using address

public static GeoLocation? GetLocation(string address)

Parameters

address string

Address

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

user User

User

force bool

Defines if it needs to force operation

Returns

GeoLocationStatus

GeoLocationStatus

SetGeolocationFromGoogleMaps(UserGroup, bool)

Sets geo location using google maps api data

public static GeoLocationStatus SetGeolocationFromGoogleMaps(UserGroup group, bool force = false)

Parameters

group UserGroup

UserGroup

force bool

Defines if it needs to force operation

Returns

GeoLocationStatus

GeoLocationStatus

Wrap(double, double, double)

Wrap a number to fit inside a specified range

public static double Wrap(double value, double min, double max)

Parameters

value double

the value

min double

minimum allowed value (inclusive)

max double

maximum allowed value (inclusive)

Returns

double

the wrapped value

To top