@trakit/objects 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +24 -0
- package/{API → _publish/API}/Arrays.d.ts +1 -0
- package/{API → _publish/API}/Base.d.ts +1 -0
- package/{API → _publish/API}/BaseComponent.d.ts +1 -0
- package/{API → _publish/API}/BaseCompound.d.ts +1 -0
- package/{API → _publish/API}/Codifier.d.ts +1 -0
- package/{API → _publish/API}/Constants.d.ts +1 -0
- package/{API → _publish/API}/Conversion.d.ts +3 -2
- package/{API → _publish/API}/Encoding.d.ts +1 -0
- package/{API → _publish/API}/Files.d.ts +1 -0
- package/{API → _publish/API}/Functions.d.ts +1 -0
- package/{API → _publish/API}/Guid.d.ts +1 -0
- package/{API → _publish/API}/Maps.d.ts +1 -0
- package/{API → _publish/API}/Objects.d.ts +1 -0
- package/{API → _publish/API}/SearchPattern.d.ts +1 -0
- package/{API → _publish/API}/TimeSpan.d.ts +1 -0
- package/{API → _publish/API}/Timezone.d.ts +1 -0
- package/{API → _publish/API}/Timezones.d.ts +1 -0
- package/{API → _publish/API}/Types.d.ts +24 -23
- package/{Accounts → _publish/Accounts}/Contact.d.ts +4 -4
- package/{Accounts → _publish/Accounts}/Machine.d.ts +1 -0
- package/_publish/Accounts/MultiFactorType.d.ts +18 -0
- package/{Accounts → _publish/Accounts}/NotificationMethod.d.ts +1 -0
- package/_publish/Accounts/SSOIdentityProvider.d.ts +26 -0
- package/{Accounts → _publish/Accounts}/Session.d.ts +12 -14
- package/{Accounts → _publish/Accounts}/SessionStatus.d.ts +1 -0
- package/{Accounts → _publish/Accounts}/SystemsOfUnits.d.ts +1 -0
- package/{Accounts → _publish/Accounts}/User.d.ts +34 -13
- package/{Accounts → _publish/Accounts}/UserAdvanced.d.ts +2 -2
- package/_publish/Accounts/UserAuthentication.d.ts +56 -0
- package/{Accounts → _publish/Accounts}/UserGeneral.d.ts +3 -4
- package/{Accounts → _publish/Accounts}/UserGroup.d.ts +2 -2
- package/_publish/Accounts/UserMFA.d.ts +48 -0
- package/{Accounts → _publish/Accounts}/UserNotifications.d.ts +1 -0
- package/_publish/Accounts/UserSSO.d.ts +38 -0
- package/{Assets → _publish/Assets}/Asset.d.ts +6 -11
- package/{Assets → _publish/Assets}/AssetAdvanced.d.ts +2 -2
- package/{Assets → _publish/Assets}/AssetAttribute.d.ts +1 -0
- package/{Assets → _publish/Assets}/AssetDispatch.d.ts +2 -2
- package/{Assets → _publish/Assets}/AssetGeneral.d.ts +3 -4
- package/{Assets → _publish/Assets}/AssetPlaceStatus.d.ts +1 -0
- package/{Assets → _publish/Assets}/AssetPlaceStatusType.d.ts +1 -0
- package/{Assets → _publish/Assets}/AssetType.d.ts +1 -0
- package/{Behaviours → _publish/Behaviours}/Behaviour.d.ts +2 -2
- package/{Behaviours → _publish/Behaviours}/BehaviourLog.d.ts +3 -4
- package/{Behaviours → _publish/Behaviours}/BehaviourLogType.d.ts +1 -0
- package/{Behaviours → _publish/Behaviours}/BehaviourParameter.d.ts +1 -0
- package/{Behaviours → _publish/Behaviours}/BehaviourParameterType.d.ts +1 -0
- package/{Behaviours → _publish/Behaviours}/BehaviourScript.d.ts +2 -2
- package/{Billing → _publish/Billing}/BillableBase.d.ts +3 -4
- package/{Billing → _publish/Billing}/BillableSmsProfile.d.ts +1 -0
- package/{Billing → _publish/Billing}/BillingCurrency.d.ts +1 -0
- package/{Billing → _publish/Billing}/BillingCycle.d.ts +1 -0
- package/{Billing → _publish/Billing}/BillingProfile.d.ts +5 -7
- package/{Companies → _publish/Companies}/ColourStyle.d.ts +1 -0
- package/{Companies → _publish/Companies}/Company.d.ts +5 -2
- package/{Companies → _publish/Companies}/CompanyDirectory.d.ts +3 -4
- package/{Companies → _publish/Companies}/CompanyGeneral.d.ts +2 -2
- package/{Companies → _publish/Companies}/CompanyPolicy.d.ts +2 -2
- package/{Companies → _publish/Companies}/CompanyReseller.d.ts +3 -4
- package/{Companies → _publish/Companies}/CompanyStyle.d.ts +2 -2
- package/{Companies → _publish/Companies}/LabelStyle.d.ts +1 -0
- package/{Companies → _publish/Companies}/NotificationServerEmail.d.ts +3 -2
- package/{Companies → _publish/Companies}/NotificationServerSms.d.ts +1 -0
- package/{Companies → _publish/Companies}/PasswordExpiryMode.d.ts +1 -0
- package/{Companies → _publish/Companies}/PasswordPolicy.d.ts +1 -0
- package/{Companies → _publish/Companies}/SessionMultiUser.d.ts +1 -0
- package/{Companies → _publish/Companies}/SessionPolicy.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchDirection.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchJob.d.ts +2 -3
- package/{Dispatch → _publish/Dispatch}/DispatchJobPriority.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchStep.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchStepState.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchStepStatus.d.ts +1 -0
- package/{Dispatch → _publish/Dispatch}/DispatchTask.d.ts +3 -4
- package/{Dispatch → _publish/Dispatch}/DispatchTaskStatus.d.ts +1 -0
- package/{Hosting → _publish/Hosting}/Document.d.ts +2 -2
- package/{Hosting → _publish/Hosting}/FormFieldType.d.ts +1 -0
- package/{Hosting → _publish/Hosting}/FormResult.d.ts +1 -2
- package/{Hosting → _publish/Hosting}/FormTemplate.d.ts +1 -1
- package/{Images → _publish/Images}/Dashcam.d.ts +4 -10
- package/{Images → _publish/Images}/DashcamBase.d.ts +9 -9
- package/{Images → _publish/Images}/DashcamLive.d.ts +4 -10
- package/{Images → _publish/Images}/DashcamMediaType.d.ts +1 -0
- package/{Images → _publish/Images}/Icon.d.ts +2 -2
- package/{Images → _publish/Images}/IconGlyph.d.ts +1 -0
- package/{Images → _publish/Images}/IconLabel.d.ts +1 -0
- package/{Images → _publish/Images}/IconLayer.d.ts +1 -0
- package/{Images → _publish/Images}/Picture.d.ts +2 -2
- package/{Maintenance → _publish/Maintenance}/MaintenanceInterval.d.ts +1 -1
- package/{Maintenance → _publish/Maintenance}/MaintenanceJob.d.ts +3 -5
- package/{Maintenance → _publish/Maintenance}/MaintenanceJobStatus.d.ts +1 -0
- package/{Maintenance → _publish/Maintenance}/MaintenanceSchedule.d.ts +2 -2
- package/{Messaging → _publish/Messaging}/AlertPriority.d.ts +1 -0
- package/{Messaging → _publish/Messaging}/AssetAlert.d.ts +1 -0
- package/{Messaging → _publish/Messaging}/AssetMessage.d.ts +1 -0
- package/{Messaging → _publish/Messaging}/MessageBase.d.ts +3 -4
- package/{Messaging → _publish/Messaging}/MessageFolder.d.ts +1 -0
- package/{Messaging → _publish/Messaging}/MessageStatus.d.ts +1 -0
- package/{Messaging → _publish/Messaging}/MessageType.d.ts +1 -0
- package/{Places → _publish/Places}/Place.d.ts +3 -4
- package/{Places → _publish/Places}/PlaceType.d.ts +1 -0
- package/{Providers → _publish/Providers}/Provider.d.ts +3 -8
- package/{Providers → _publish/Providers}/ProviderAdvanced.d.ts +2 -2
- package/{Providers → _publish/Providers}/ProviderCommand.d.ts +1 -0
- package/{Providers → _publish/Providers}/ProviderCommandStatus.d.ts +1 -0
- package/{Providers → _publish/Providers}/ProviderCommandType.d.ts +1 -0
- package/{Providers → _publish/Providers}/ProviderControl.d.ts +2 -2
- package/{Providers → _publish/Providers}/ProviderData.d.ts +1 -0
- package/{Providers → _publish/Providers}/ProviderGeneral.d.ts +4 -7
- package/{Providers → _publish/Providers}/ProviderType.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportBreakdown.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportBreakdownJob.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportBreakdownMessage.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportBreakdownTask.d.ts +1 -0
- package/_publish/Reports/ReportBreakdown_fromJSON.d.ts +2 -0
- package/{Reports → _publish/Reports}/ReportFilterMode.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportNotifications.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportOptions.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportParameter.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportParameterType.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportRecurrence.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportRecurrenceType.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportResult.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportResultData.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportSchedule.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportScorecard.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportScorecardParameter.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportScorecardRules.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportStatus.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportSummary.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportSummaryReason.d.ts +1 -0
- package/{Reports → _publish/Reports}/ReportTemplate.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportTotal.d.ts +2 -2
- package/{Reports → _publish/Reports}/ReportType.d.ts +1 -0
- package/{index.d.ts → _publish/index.d.ts} +5 -4
- package/{storage.d.ts → _publish/storage.d.ts} +1 -0
- package/{trakit-objects.min.js → _publish/trakit-objects.min.js} +2 -2
- package/package.json +8 -1
- package/API/Geography/Functions.d.ts +0 -236
- package/API/Geography/Interfaces.d.ts +0 -150
- package/API/Geography/LatLng.d.ts +0 -86
- package/API/Geography/LatLngBounds.d.ts +0 -146
- package/API/Geography/Position.d.ts +0 -74
- package/API/Geography/StreetAddress.d.ts +0 -59
- package/API/Geometry/Functions.d.ts +0 -114
- package/API/Geometry/Interfaces.d.ts +0 -111
- package/API/Geometry/Point.d.ts +0 -81
- package/API/Geometry/Radial.d.ts +0 -110
- package/API/Geometry/Rectangle.d.ts +0 -159
- package/API/Geometry/Size.d.ts +0 -58
- package/API/Interfaces/IAmCompany.d.ts +0 -11
- package/API/Interfaces/IAuditable.d.ts +0 -31
- package/API/Interfaces/IBelongAsset.d.ts +0 -15
- package/API/Interfaces/IBelongBillingProfile.d.ts +0 -15
- package/API/Interfaces/IBelongCompany.d.ts +0 -15
- package/API/Interfaces/IDeserializable.d.ts +0 -13
- package/API/Interfaces/IEnabled.d.ts +0 -10
- package/API/Interfaces/IFileSize.d.ts +0 -9
- package/API/Interfaces/IGlobal.d.ts +0 -11
- package/API/Interfaces/IHavePermissions.d.ts +0 -20
- package/API/Interfaces/IHavePreferences.d.ts +0 -29
- package/API/Interfaces/IIconic.d.ts +0 -15
- package/API/Interfaces/IIdUlong.d.ts +0 -10
- package/API/Interfaces/ILabelled.d.ts +0 -10
- package/API/Interfaces/INamed.d.ts +0 -13
- package/API/Interfaces/IPictured.d.ts +0 -15
- package/API/Interfaces/IRequestable.d.ts +0 -22
- package/API/Interfaces/ISerializable.d.ts +0 -10
- package/API/Interfaces/ISuspendable.d.ts +0 -16
- package/API/Interfaces/IVisual.d.ts +0 -18
- package/Accounts/Permissions/Authorizer.d.ts +0 -204
- package/Accounts/Permissions/Permission.d.ts +0 -57
- package/Accounts/Permissions/PermissionEscalation.d.ts +0 -41
- package/Accounts/Permissions/PermissionEscalationState.d.ts +0 -19
- package/Accounts/Permissions/PermissionEscalationType.d.ts +0 -13
- package/Accounts/Permissions/PermissionLevel.d.ts +0 -17
- package/Accounts/Permissions/PermissionMethod.d.ts +0 -13
- package/Accounts/Permissions/PermissionType.d.ts +0 -280
- package/Billing/Hosting/BillableHostingBase.d.ts +0 -41
- package/Billing/Hosting/BillableHostingDiscount.d.ts +0 -36
- package/Billing/Hosting/BillableHostingLicense.d.ts +0 -30
- package/Billing/Hosting/BillableHostingLicenseType.d.ts +0 -20
- package/Billing/Hosting/BillableHostingRule.d.ts +0 -30
- package/Billing/Hosting/BillableHostingType.d.ts +0 -41
- package/Billing/Report/BillingReport.d.ts +0 -114
- package/Billing/Report/BillingReportBreakdown.d.ts +0 -35
- package/Billing/Report/BillingReportHostingSummary.d.ts +0 -36
- package/Billing/Report/BillingReportLicenseBreakdown.d.ts +0 -80
- package/Billing/Report/BillingReportServiceBreakdown.d.ts +0 -126
- package/Billing/Report/BillingReportStatus.d.ts +0 -25
- package/Billing/Report/BillingReportSummary.d.ts +0 -51
- package/Hosting/Fields/FormFieldAttachments.d.ts +0 -31
- package/Hosting/Fields/FormFieldBase.d.ts +0 -56
- package/Hosting/Fields/FormFieldBase_fromJSON.d.ts +0 -1
- package/Hosting/Fields/FormFieldBoolean.d.ts +0 -38
- package/Hosting/Fields/FormFieldChoice.d.ts +0 -46
- package/Hosting/Fields/FormFieldDate.d.ts +0 -26
- package/Hosting/Fields/FormFieldNumeric.d.ts +0 -54
- package/Hosting/Fields/FormFieldNumericSize.d.ts +0 -32
- package/Hosting/Fields/FormFieldSignature.d.ts +0 -17
- package/Hosting/Fields/FormFieldText.d.ts +0 -32
- package/Hosting/Fields/FormFieldTime.d.ts +0 -37
- package/Hosting/Fields/FormFieldTimezone.d.ts +0 -14
- package/Providers/Config/ProviderConfig.d.ts +0 -72
- package/Providers/Config/ProviderRegistration.d.ts +0 -123
- package/Providers/Config/ProviderScript.d.ts +0 -87
- package/Providers/Config/ProviderScriptBlock.d.ts +0 -41
- package/Providers/Config/ProviderScriptParameter.d.ts +0 -49
- package/Providers/Config/ProviderScriptParameterType.d.ts +0 -17
- package/Providers/Configuration/ProviderConfiguration.d.ts +0 -68
- package/Providers/Configuration/ProviderConfigurationNode.d.ts +0 -66
- package/Providers/Configuration/ProviderConfigurationType.d.ts +0 -62
- package/Providers/Configuration/ProviderGeofenceBase.d.ts +0 -29
- package/Providers/Configuration/ProviderGeofenceBase_fromJSON.d.ts +0 -1
- package/Providers/Configuration/ProviderGeofenceCircular.d.ts +0 -28
- package/Providers/Configuration/ProviderGeofencePoint.d.ts +0 -12
- package/Providers/Configuration/ProviderGeofencePolygon.d.ts +0 -23
- package/Providers/Configuration/ProviderGeofenceRectangle.d.ts +0 -28
- package/Reports/ReportBreakdown_fromJSON.d.ts +0 -1
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { datetime, nothing } from '../Types';
|
|
2
|
-
/**
|
|
3
|
-
* A coordinate on the Earth.
|
|
4
|
-
*/
|
|
5
|
-
export interface ILatLng {
|
|
6
|
-
/**
|
|
7
|
-
* Latitude.
|
|
8
|
-
*/
|
|
9
|
-
lat: number;
|
|
10
|
-
/**
|
|
11
|
-
* Longitude.
|
|
12
|
-
*/
|
|
13
|
-
lng: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Returns true if the given pin conforms to the {@link ILatLng} interface.
|
|
17
|
-
* @param pin
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
export declare function ILatLng_instanceOf(pin: any): pin is ILatLng;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param dot
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
export declare function ILatLng_clone(dot: ILatLng): ILatLng;
|
|
27
|
-
/**
|
|
28
|
-
* GPS position information.
|
|
29
|
-
*/
|
|
30
|
-
export interface IPosition extends ILatLng {
|
|
31
|
-
/**
|
|
32
|
-
* Speed
|
|
33
|
-
*/
|
|
34
|
-
speed: number | nothing;
|
|
35
|
-
/**
|
|
36
|
-
* Direction of travel
|
|
37
|
-
*/
|
|
38
|
-
bearing: number | nothing;
|
|
39
|
-
/**
|
|
40
|
-
* Distance in meters from the sea level
|
|
41
|
-
*/
|
|
42
|
-
altitude: number | nothing;
|
|
43
|
-
/**
|
|
44
|
-
* Threshold in meters for the accuracy of a position
|
|
45
|
-
*/
|
|
46
|
-
accuracy: number | nothing;
|
|
47
|
-
/**
|
|
48
|
-
* The Date/Time of the GPS reading
|
|
49
|
-
*/
|
|
50
|
-
dts: datetime;
|
|
51
|
-
/**
|
|
52
|
-
* A description of the current road-segment
|
|
53
|
-
*/
|
|
54
|
-
address: string | nothing;
|
|
55
|
-
/**
|
|
56
|
-
* A better description of the current road-segment
|
|
57
|
-
*/
|
|
58
|
-
streetAddress: IStreetAddress | nothing;
|
|
59
|
-
/**
|
|
60
|
-
* The posted speed limit for the road segment
|
|
61
|
-
*/
|
|
62
|
-
speedLimit: number | nothing;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Returns true if the given pin conforms to the {@link IPosition} interface.
|
|
66
|
-
* @param pin
|
|
67
|
-
* @returns
|
|
68
|
-
*/
|
|
69
|
-
export declare function IPosition_instanceOf(pin: any): pin is IPosition;
|
|
70
|
-
/**
|
|
71
|
-
* A road segment description.
|
|
72
|
-
*/
|
|
73
|
-
export interface IStreetAddress {
|
|
74
|
-
/**
|
|
75
|
-
* House number.
|
|
76
|
-
*/
|
|
77
|
-
number: string | null;
|
|
78
|
-
/**
|
|
79
|
-
* Full street name.
|
|
80
|
-
*/
|
|
81
|
-
street: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* City name.
|
|
84
|
-
*/
|
|
85
|
-
city: string | null;
|
|
86
|
-
/**
|
|
87
|
-
* Region name.
|
|
88
|
-
*/
|
|
89
|
-
region: string | null;
|
|
90
|
-
/**
|
|
91
|
-
* Province or state code.
|
|
92
|
-
* Codes should be a value from ISO 3166-2.
|
|
93
|
-
*/
|
|
94
|
-
province: string;
|
|
95
|
-
/**
|
|
96
|
-
* Country code.
|
|
97
|
-
* Codes should be a value from ISO 3166-1 alpha-2.
|
|
98
|
-
*/
|
|
99
|
-
country: string;
|
|
100
|
-
/**
|
|
101
|
-
* Postal or zip code.
|
|
102
|
-
*/
|
|
103
|
-
postal: string | null;
|
|
104
|
-
/**
|
|
105
|
-
* Indicates that there is a toll for the current road segment.
|
|
106
|
-
*/
|
|
107
|
-
isToll: boolean | null;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Returns true if the given pin conforms to the {@link IStreetAddress} interface.
|
|
111
|
-
* @param address
|
|
112
|
-
* @returns
|
|
113
|
-
*/
|
|
114
|
-
export declare function IStreetAddress_instanceOf(address: any): address is IStreetAddress;
|
|
115
|
-
/**
|
|
116
|
-
* A rectangular boundary on a flat surface.
|
|
117
|
-
*/
|
|
118
|
-
export interface ILatLngBounds {
|
|
119
|
-
/**
|
|
120
|
-
* Northern latitude
|
|
121
|
-
*/
|
|
122
|
-
north: number;
|
|
123
|
-
/**
|
|
124
|
-
* Eastern longitude
|
|
125
|
-
*/
|
|
126
|
-
east: number;
|
|
127
|
-
/**
|
|
128
|
-
* Southern latitude
|
|
129
|
-
*/
|
|
130
|
-
south: number;
|
|
131
|
-
/**
|
|
132
|
-
* Western longitude
|
|
133
|
-
*/
|
|
134
|
-
west: number;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Returns true if the given box conforms to the {@link ILatLngBounds} interface.
|
|
138
|
-
* @param box
|
|
139
|
-
*/
|
|
140
|
-
export declare function ILatLngBounds_instanceOf(box: any): box is ILatLngBounds;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @param box
|
|
144
|
-
* @returns
|
|
145
|
-
*/
|
|
146
|
-
export declare function ILatLngBounds_clone(box: ILatLngBounds): ILatLngBounds;
|
|
147
|
-
/**
|
|
148
|
-
* The types used to extend a {@link LatLngBounds}'s edges.
|
|
149
|
-
*/
|
|
150
|
-
export type LatLngBoundsExpansion = ILatLng | ILatLngBounds | LatLngBoundsExpansion[];
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { Point } from '../Geometry/Point';
|
|
2
|
-
import { JsonObject } from '../Types';
|
|
3
|
-
import { ILatLng } from './Interfaces';
|
|
4
|
-
import { LatLngBounds } from './LatLngBounds';
|
|
5
|
-
/**
|
|
6
|
-
* A coordinate on the Earth.
|
|
7
|
-
*/
|
|
8
|
-
export declare class LatLng implements ILatLng {
|
|
9
|
-
/**
|
|
10
|
-
* Let's consider the zero-zero coordinates to be invalid.
|
|
11
|
-
*/
|
|
12
|
-
static readonly INVALID: LatLng;
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @param json
|
|
16
|
-
*/
|
|
17
|
-
static fromJSON(json: ILatLng | JsonObject): LatLng;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @param latlng
|
|
21
|
-
* @param delimiter
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
static fromString(latlng: string, delimiter?: string): LatLng;
|
|
25
|
-
/**
|
|
26
|
-
* Latitude
|
|
27
|
-
*/
|
|
28
|
-
readonly lat: number;
|
|
29
|
-
/**
|
|
30
|
-
* Longitude
|
|
31
|
-
*/
|
|
32
|
-
readonly lng: number;
|
|
33
|
-
constructor(lat: number, lng: number);
|
|
34
|
-
/**
|
|
35
|
-
* Returns a string representation of this {@link LatLng}.
|
|
36
|
-
* @param delimiter The boundary is delimited by a comma (,) by default, but you can override with your own value.
|
|
37
|
-
* @returns A string in the format of "lat,lng".
|
|
38
|
-
*/
|
|
39
|
-
toString(delimiter?: string): string;
|
|
40
|
-
/**
|
|
41
|
-
* Creates a literal of this {@link LatLng}.
|
|
42
|
-
* Used internally by {@link JSON.stringify}.
|
|
43
|
-
*/
|
|
44
|
-
toJSON(): ILatLng;
|
|
45
|
-
/**
|
|
46
|
-
* Compares this LatLng to another to see if they are equivalent.
|
|
47
|
-
* @param other The other LatLng to compare
|
|
48
|
-
* @param tolerance Distance tolerance before considering two nearly identical coordinates to be equal.
|
|
49
|
-
*/
|
|
50
|
-
isEqual(other: ILatLng, tolerance?: number): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Returns true if this coordinate is not NaN and not zero-zero.
|
|
53
|
-
*/
|
|
54
|
-
isValid(): boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Calculates the distance across the surface of the globe to another coordinate
|
|
57
|
-
* @param pin
|
|
58
|
-
*/
|
|
59
|
-
distanceTo(pin: ILatLng): number;
|
|
60
|
-
/**
|
|
61
|
-
* Calculates the starting bearing across the surface of the globe from the current coordinate to the given coordinate
|
|
62
|
-
* @param pin
|
|
63
|
-
*/
|
|
64
|
-
bearingTo(pin: ILatLng): number;
|
|
65
|
-
/**
|
|
66
|
-
* Returns a new coordinate at the given distance and bearing from this coordinate
|
|
67
|
-
* @param meters
|
|
68
|
-
* @param bearing
|
|
69
|
-
*/
|
|
70
|
-
toTranslated(meters: number, bearing: number): LatLng;
|
|
71
|
-
/**
|
|
72
|
-
* Returns a new LatLng at the half-way point between this and the given LatLng.
|
|
73
|
-
* @param pin The other coordinate.
|
|
74
|
-
* @throws {Error} Either latitude or longitude is NaN
|
|
75
|
-
*/
|
|
76
|
-
toBetween(pin: ILatLng): LatLng;
|
|
77
|
-
/**
|
|
78
|
-
* Creates a Point based on the given magnifier.
|
|
79
|
-
*/
|
|
80
|
-
toRadians(magnifier?: number): Point;
|
|
81
|
-
/**
|
|
82
|
-
* Creates a square LatLngBounds centred around this LatLng.
|
|
83
|
-
* @param radius The closest distance (in meters) from this coordinate to the edges of the new LatLngBounds.
|
|
84
|
-
*/
|
|
85
|
-
toBounds(radius: number): LatLngBounds;
|
|
86
|
-
}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { ISerializable } from '../Interfaces/ISerializable';
|
|
2
|
-
import { JsonObject } from '../Types';
|
|
3
|
-
import { ILatLng, ILatLngBounds, LatLngBoundsExpansion } from './Interfaces';
|
|
4
|
-
import { LatLng } from './LatLng';
|
|
5
|
-
/**
|
|
6
|
-
* A boundary on the globe
|
|
7
|
-
*/
|
|
8
|
-
export declare class LatLngBounds implements ILatLngBounds, ISerializable {
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param json
|
|
12
|
-
*/
|
|
13
|
-
static fromJSON(json: ILatLngBounds | JsonObject): LatLngBounds;
|
|
14
|
-
/**
|
|
15
|
-
* Northern latitude
|
|
16
|
-
*/
|
|
17
|
-
north: number;
|
|
18
|
-
/**
|
|
19
|
-
* Eastern longitude
|
|
20
|
-
*/
|
|
21
|
-
east: number;
|
|
22
|
-
/**
|
|
23
|
-
* Southern latitude
|
|
24
|
-
*/
|
|
25
|
-
south: number;
|
|
26
|
-
/**
|
|
27
|
-
* Western longitude
|
|
28
|
-
*/
|
|
29
|
-
west: number;
|
|
30
|
-
constructor(...args: LatLngBoundsExpansion[]);
|
|
31
|
-
/**
|
|
32
|
-
* Returns a string representation of this {@link LatLng}.
|
|
33
|
-
* @param delimiter The boundary is delimited by a comma (,) by default, but you can override with your own value.
|
|
34
|
-
* @returns A string in the format of "lat,lng".
|
|
35
|
-
*/
|
|
36
|
-
toString(delimiter?: string): string;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a literal of this {@link LatLngBounds}.
|
|
39
|
-
* Used internally by {@link JSON.stringify}.
|
|
40
|
-
*/
|
|
41
|
-
toJSON(): {
|
|
42
|
-
north: number;
|
|
43
|
-
east: number;
|
|
44
|
-
south: number;
|
|
45
|
-
west: number;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Compares this LatLng to another to see if they are equivalent.
|
|
49
|
-
* @param other The other LatLng to compare
|
|
50
|
-
* @param tolerance Distance tolerance before considering two nearly identical coordinates to be equal.
|
|
51
|
-
*/
|
|
52
|
-
isEqual(other: ILatLngBounds, tolerance?: number): boolean;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
isValid(): boolean;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
isEmpty(): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Checks if a {@link LatLng} is contained within this boundary.
|
|
63
|
-
* @param pin The point to check
|
|
64
|
-
*/
|
|
65
|
-
contains(pin: ILatLng): boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Checks if a {@link LatLngBounds} is contained within this boundary.
|
|
68
|
-
* @expose
|
|
69
|
-
* @this {LatLngBounds}
|
|
70
|
-
* @param bounds The other boundary to check
|
|
71
|
-
*/
|
|
72
|
-
encloses(bounds: ILatLngBounds): boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Checks if a {@link LatLngBounds} overlaps this boundary.
|
|
75
|
-
* Also returns true if either boundary's {@link LatLngBounds#encloses} returns true.
|
|
76
|
-
* @param other The other boundary to check
|
|
77
|
-
*/
|
|
78
|
-
overlaps(other: ILatLngBounds): boolean;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @param object
|
|
82
|
-
*/
|
|
83
|
-
private __expander;
|
|
84
|
-
/**
|
|
85
|
-
* Extends the boundary to envelop the given point(s) but does not automatically
|
|
86
|
-
* validate. This comes in efficient when doing many operations on a single
|
|
87
|
-
* PointBounds
|
|
88
|
-
*/
|
|
89
|
-
expand(latlngs: LatLngBoundsExpansion): this;
|
|
90
|
-
/**
|
|
91
|
-
* Extends the boundary to envelop the given point(s) and automatically validates
|
|
92
|
-
*/
|
|
93
|
-
extend(latlngs: LatLngBoundsExpansion): this;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
getCentre(): LatLng;
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
*/
|
|
101
|
-
getNorthEast(): LatLng;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
getNorthWest(): LatLng;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
*/
|
|
109
|
-
getSouthEast(): LatLng;
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
*/
|
|
113
|
-
getSouthWest(): LatLng;
|
|
114
|
-
/**
|
|
115
|
-
* The mid-point coordinate between the north east and north west corners.
|
|
116
|
-
*/
|
|
117
|
-
getNorthMiddle(): LatLng;
|
|
118
|
-
/**
|
|
119
|
-
* The mid-point coordinate between the south east and south west corners.
|
|
120
|
-
*/
|
|
121
|
-
getSouthMiddle(): LatLng;
|
|
122
|
-
/**
|
|
123
|
-
* The mid-point coordinate between the north east and north west corners.
|
|
124
|
-
*/
|
|
125
|
-
getEastMiddle(): LatLng;
|
|
126
|
-
/**
|
|
127
|
-
* The mid-point coordinate between the south east and south west corners.
|
|
128
|
-
*/
|
|
129
|
-
getWestMiddle(): LatLng;
|
|
130
|
-
/**
|
|
131
|
-
* The distance in meters between the north-east corner and the south-west corner.
|
|
132
|
-
*/
|
|
133
|
-
getDiagonalDistance(): number;
|
|
134
|
-
/**
|
|
135
|
-
* The distance in meters between the north-most border and the south-most border.
|
|
136
|
-
*/
|
|
137
|
-
getLatitudinalDistance(): number;
|
|
138
|
-
/**
|
|
139
|
-
* The distance in meters between the east-most and the west-most points along the border closest to the equator.
|
|
140
|
-
*/
|
|
141
|
-
getLongitudinalDistance(): number;
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
*/
|
|
145
|
-
validate(): this;
|
|
146
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { datetime, JsonObject, nothing } from '../Types';
|
|
2
|
-
import { IPosition, IStreetAddress } from './Interfaces';
|
|
3
|
-
import { LatLng } from './LatLng';
|
|
4
|
-
import { StreetAddress } from './StreetAddress';
|
|
5
|
-
/**
|
|
6
|
-
* GPS position information
|
|
7
|
-
*/
|
|
8
|
-
export declare class Position extends LatLng implements IPosition {
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param json
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
static fromJSON(json: IPosition | JsonObject): Position;
|
|
15
|
-
/**
|
|
16
|
-
* Speed
|
|
17
|
-
*/
|
|
18
|
-
readonly speed: number;
|
|
19
|
-
/**
|
|
20
|
-
* Direction of travel
|
|
21
|
-
*/
|
|
22
|
-
readonly bearing: number;
|
|
23
|
-
/**
|
|
24
|
-
* Distance in meters from the sea level
|
|
25
|
-
*/
|
|
26
|
-
readonly altitude: number;
|
|
27
|
-
/**
|
|
28
|
-
* Threshold in meters for the accuracy of a position
|
|
29
|
-
*/
|
|
30
|
-
readonly accuracy: number;
|
|
31
|
-
/**
|
|
32
|
-
* The Date/Time of the GPS reading
|
|
33
|
-
*/
|
|
34
|
-
readonly date: Date;
|
|
35
|
-
/**
|
|
36
|
-
* The Date/Time of the GPS reading
|
|
37
|
-
*/
|
|
38
|
-
get dts(): string;
|
|
39
|
-
/**
|
|
40
|
-
* A better description of the current road-segment
|
|
41
|
-
*/
|
|
42
|
-
readonly streetAddress: StreetAddress | null;
|
|
43
|
-
/**
|
|
44
|
-
* The posted speed limit for the road segment
|
|
45
|
-
*/
|
|
46
|
-
readonly speedLimit: number | nothing;
|
|
47
|
-
/**
|
|
48
|
-
* Provider Identifier
|
|
49
|
-
*/
|
|
50
|
-
readonly origin: string;
|
|
51
|
-
/**
|
|
52
|
-
* The road segment description
|
|
53
|
-
*/
|
|
54
|
-
readonly address: string;
|
|
55
|
-
constructor(lat?: number | nothing, lng?: number | nothing, speed?: number | nothing, bearing?: number | nothing, accuracy?: number | nothing, dts?: Date | number | datetime | nothing, address?: string | nothing, limit?: number | nothing, altitude?: number | nothing, street?: IStreetAddress | JsonObject | nothing);
|
|
56
|
-
/**
|
|
57
|
-
* Returns a text representation of this position.
|
|
58
|
-
* Returned strings cannot be converted back into {@link Position}
|
|
59
|
-
* objects, so don't use this for deserialization.
|
|
60
|
-
* @param delimiter
|
|
61
|
-
*/
|
|
62
|
-
toString(delimiter?: string): string;
|
|
63
|
-
/**
|
|
64
|
-
* Creates a literal of this {@link Position}.
|
|
65
|
-
* Used internally by {@link JSON.stringify}.
|
|
66
|
-
*/
|
|
67
|
-
toJSON(): IPosition;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @param position
|
|
71
|
-
* @returns
|
|
72
|
-
*/
|
|
73
|
-
isEqual(position: Position | IPosition): boolean;
|
|
74
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { ISerializable } from "../Interfaces/ISerializable";
|
|
2
|
-
import { JsonObject, nothing } from "../Types";
|
|
3
|
-
import { IStreetAddress } from "./Interfaces";
|
|
4
|
-
/**
|
|
5
|
-
* A road segment description
|
|
6
|
-
*/
|
|
7
|
-
export declare class StreetAddress implements IStreetAddress, ISerializable {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param street
|
|
11
|
-
*/
|
|
12
|
-
static fromJSON(json: IStreetAddress | JsonObject): StreetAddress;
|
|
13
|
-
/**
|
|
14
|
-
* House number.
|
|
15
|
-
*/
|
|
16
|
-
number: string;
|
|
17
|
-
/**
|
|
18
|
-
* Full street name.
|
|
19
|
-
*/
|
|
20
|
-
street: string;
|
|
21
|
-
/**
|
|
22
|
-
* City name.
|
|
23
|
-
*/
|
|
24
|
-
city: string;
|
|
25
|
-
/**
|
|
26
|
-
* Region name.
|
|
27
|
-
*/
|
|
28
|
-
region: string;
|
|
29
|
-
/**
|
|
30
|
-
* Province or state code.
|
|
31
|
-
* Codes should be a value from ISO 3166-2.
|
|
32
|
-
*/
|
|
33
|
-
province: string;
|
|
34
|
-
/**
|
|
35
|
-
* Country code.
|
|
36
|
-
* Codes should be a value from ISO 3166-1 alpha-2.
|
|
37
|
-
*/
|
|
38
|
-
country: string;
|
|
39
|
-
/**
|
|
40
|
-
* Postal or zip code.
|
|
41
|
-
*/
|
|
42
|
-
postal: string;
|
|
43
|
-
/**
|
|
44
|
-
* Indicates that there is a toll for the current road segment.
|
|
45
|
-
*/
|
|
46
|
-
isToll: boolean;
|
|
47
|
-
constructor(number?: string | nothing, street?: string | nothing, city?: string | nothing, region?: string | nothing, province?: string | nothing, country?: string | nothing, postal?: string | nothing, isToll?: boolean | nothing);
|
|
48
|
-
/**
|
|
49
|
-
* Returns a text representation of this address.
|
|
50
|
-
* Returned strings cannot be converted back into {@link StreetAddress}
|
|
51
|
-
* objects, so don't use this for deserialization.
|
|
52
|
-
*/
|
|
53
|
-
toString(): string;
|
|
54
|
-
/**
|
|
55
|
-
* Creates a literal of this {@link StreetAddress}.
|
|
56
|
-
* Used internally by {@link JSON.stringify}.
|
|
57
|
-
*/
|
|
58
|
-
toJSON(): IStreetAddress;
|
|
59
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { IPoint, IRadial, IRectangle } from './Interfaces';
|
|
2
|
-
/**
|
|
3
|
-
* Calculates the starting angle (in degrees) between two Points using the top as zero. Does not return negative values.
|
|
4
|
-
* @param starting Starting coordinate
|
|
5
|
-
* @param ending Other coordinate
|
|
6
|
-
* @returns A number between 0 and 360.
|
|
7
|
-
*/
|
|
8
|
-
export declare function POINT_ANGLE(starting: IPoint, ending: IPoint): number;
|
|
9
|
-
/**
|
|
10
|
-
* Calculates the distance between two points using Pythagorean theorem.
|
|
11
|
-
* @param starting Starting coordinate
|
|
12
|
-
* @param ending Other coordinate
|
|
13
|
-
*/
|
|
14
|
-
export declare function POINT_DISTANCE(starting: IPoint, ending: IPoint): number;
|
|
15
|
-
/**
|
|
16
|
-
* Sorts points by left-most, then by top-most.
|
|
17
|
-
*/
|
|
18
|
-
export declare function POINT_SORT(a: IPoint, b: IPoint): number;
|
|
19
|
-
/**
|
|
20
|
-
* Calculates the vector which can be used to find the point based on the given direction and distance
|
|
21
|
-
* @param distance
|
|
22
|
-
* @param degrees
|
|
23
|
-
*/
|
|
24
|
-
export declare function POINT_VECTOR(distance: number, degrees: number): IPoint;
|
|
25
|
-
/**
|
|
26
|
-
* Calculates the total length of the given path
|
|
27
|
-
* @param path The array of points representing a path
|
|
28
|
-
* */
|
|
29
|
-
export declare function PATH_LENGTH(path: IPoint[]): number;
|
|
30
|
-
/**
|
|
31
|
-
* Calculates the orthogonal height of a triangle. The orthogonal height is
|
|
32
|
-
* calculated by drawing a line between the firstPoint and lastPoint, then
|
|
33
|
-
* getting the length of a line drawn up from the line to the midPoint at a 90
|
|
34
|
-
* degree angle.
|
|
35
|
-
* @param first Left-most coordinate of the triangle
|
|
36
|
-
* @param mid Top-most coordinate of the triangle
|
|
37
|
-
* @param last Right-most coordinate of the triangle
|
|
38
|
-
*/
|
|
39
|
-
export declare function PATH_ORTHOGONAL(first: IPoint, mid: IPoint, last: IPoint): number;
|
|
40
|
-
/**
|
|
41
|
-
* Performs a Douglas-Peucker path reduction based on the given tolerance.
|
|
42
|
-
* @param path The array of points representing a path
|
|
43
|
-
* @param tolerance Orthogonal height threshold for candidate points. Default is 0.
|
|
44
|
-
* */
|
|
45
|
-
export declare function PATH_PEUCKER(path: IPoint[], tolerance?: number): IPoint[];
|
|
46
|
-
/**
|
|
47
|
-
* Calculates the total area occupied by the given path. Treats non-closed paths as closed paths.
|
|
48
|
-
* @param path The array of points representing a path
|
|
49
|
-
* */
|
|
50
|
-
export declare function POLY_AREA(path: IPoint[]): number;
|
|
51
|
-
/**
|
|
52
|
-
* A utility export function to determine if a given point is inside the given polygon path.
|
|
53
|
-
* @param poly The array of points represents the path of the polygon.
|
|
54
|
-
* @param dot The coordinate of the point to be checked.
|
|
55
|
-
* */
|
|
56
|
-
export declare function POLY_CONTAINS(poly: IPoint[], dot: IPoint): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Performs a Douglas-Peucker path reduction on a polygon for the given tolerance.
|
|
59
|
-
* The start/end points are variable and the end point is trimmed from the result.
|
|
60
|
-
* @param path The array of points representing a path
|
|
61
|
-
* @param tolerance Orthogonal height threshold for candidate points. Default is 0.
|
|
62
|
-
* */
|
|
63
|
-
export declare function POLY_PEUCKER(path: IPoint[], tolerance?: number): IPoint[];
|
|
64
|
-
/**
|
|
65
|
-
* Wraps the given points into a polygonal path. The given points do not need to be a path. The returned path is not closed.
|
|
66
|
-
* @param points The array of points on which to create the non-closed path
|
|
67
|
-
* @returns Non-closed path.
|
|
68
|
-
*/
|
|
69
|
-
export declare function POLY_WRAPPER(points: IPoint[]): IPoint[];
|
|
70
|
-
/**
|
|
71
|
-
* Calculates the area of a circle based on the given radius.
|
|
72
|
-
* @param radius
|
|
73
|
-
* */
|
|
74
|
-
export declare function RADIAL_AREA(radius: number): number;
|
|
75
|
-
/**
|
|
76
|
-
* Solves the Minimum Enclosing Circle problem using Badoiu Clarkson's algorithm.
|
|
77
|
-
* @param points The array of points on which to create the Radial
|
|
78
|
-
* @param iterations The higher the iterations the slower and more accurate the Radial. Default is 10,000.
|
|
79
|
-
* */
|
|
80
|
-
export declare function RADIAL_BADOIU_CLARKSON(points: IPoint[], iterations?: number): IRadial;
|
|
81
|
-
/**
|
|
82
|
-
* Calculates the circumference of a circle based on the given radius.
|
|
83
|
-
* @param radius
|
|
84
|
-
* */
|
|
85
|
-
export declare function RADIAL_CIRCUMFERENCE(radius: number): number;
|
|
86
|
-
/**
|
|
87
|
-
* Creates an {@link IRectangle} which contains the given list of {@link IPoint}s.
|
|
88
|
-
* @param dots
|
|
89
|
-
*/
|
|
90
|
-
export declare function RECTANGLE_FROM_POINTS(dots: IPoint[]): IRectangle;
|
|
91
|
-
/**
|
|
92
|
-
* Returns true if the given {@link Radial} overlaps the given {@link Rectangle}.
|
|
93
|
-
* @param circle
|
|
94
|
-
* @param rect
|
|
95
|
-
* */
|
|
96
|
-
export declare function RADIAL_OVERLAP_RECTANGLE(circle: IRadial, rect: IRectangle): boolean;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @param rect
|
|
100
|
-
*/
|
|
101
|
-
export declare function RECTANGLE_CENTRE(rect: IRectangle): IPoint;
|
|
102
|
-
/**
|
|
103
|
-
* Determines if the given {@link IPoint} is contained by the given {@link Rectangle}.
|
|
104
|
-
* @param rect
|
|
105
|
-
* @param dot
|
|
106
|
-
* @returns
|
|
107
|
-
*/
|
|
108
|
-
export declare function RECTANGLE_CONTAINS_POINT(rect: IRectangle, dot: IPoint): boolean;
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @param rect
|
|
112
|
-
* @param clip
|
|
113
|
-
*/
|
|
114
|
-
export declare function RECTANGLE_TO_RADIAL(rect: IRectangle, clip: boolean): IRadial;
|