@chargealong/client 0.1.0
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 +21 -0
- package/dist/index.cjs +382 -0
- package/dist/index.d.cts +516 -0
- package/dist/index.d.ts +516 -0
- package/dist/index.js +361 -0
- package/package.json +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ChargeAlong
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/errors.ts
|
|
4
|
+
var ChargeAlongError = class extends Error {
|
|
5
|
+
status;
|
|
6
|
+
title;
|
|
7
|
+
detail;
|
|
8
|
+
constructor(status, title = "", detail = "") {
|
|
9
|
+
super([title || `HTTP ${status}`, detail].filter(Boolean).join(": "));
|
|
10
|
+
this.name = "ChargeAlongError";
|
|
11
|
+
this.status = status;
|
|
12
|
+
this.title = title;
|
|
13
|
+
this.detail = detail;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var NotFound = class extends ChargeAlongError {
|
|
17
|
+
constructor(status, title = "", detail = "") {
|
|
18
|
+
super(status, title, detail);
|
|
19
|
+
this.name = "NotFound";
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
var Gone = class extends ChargeAlongError {
|
|
23
|
+
constructor(status, title = "", detail = "") {
|
|
24
|
+
super(status, title, detail);
|
|
25
|
+
this.name = "Gone";
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var BadRequest = class extends ChargeAlongError {
|
|
29
|
+
constructor(status, title = "", detail = "") {
|
|
30
|
+
super(status, title, detail);
|
|
31
|
+
this.name = "BadRequest";
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var RateLimited = class extends ChargeAlongError {
|
|
35
|
+
/** Seconds the service asked for, when it said. */
|
|
36
|
+
retryAfter;
|
|
37
|
+
constructor(status, title = "", detail = "", retryAfter) {
|
|
38
|
+
super(status, title, detail);
|
|
39
|
+
this.name = "RateLimited";
|
|
40
|
+
this.retryAfter = retryAfter;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
function errorFor(status, title = "", detail = "", retryAfter) {
|
|
44
|
+
if (status === 404) return new NotFound(status, title, detail);
|
|
45
|
+
if (status === 410) return new Gone(status, title, detail);
|
|
46
|
+
if (status === 429) return new RateLimited(status, title, detail, retryAfter);
|
|
47
|
+
if (status >= 400 && status < 500) return new BadRequest(status, title, detail);
|
|
48
|
+
return new ChargeAlongError(status, title, detail);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// src/types.ts
|
|
52
|
+
var CONNECTORS = ["ccs2", "chademo", "type-2", "nacs", "ccs1", "type-1", "gbt"];
|
|
53
|
+
|
|
54
|
+
// src/client.ts
|
|
55
|
+
var VERSION = "0.1.0";
|
|
56
|
+
var DEFAULT_BASE_URL = "https://api.chargealong.io";
|
|
57
|
+
var MIN_QUERY = 3;
|
|
58
|
+
var MAX_QUERY = 100;
|
|
59
|
+
var ChargeAlong = class {
|
|
60
|
+
baseUrl;
|
|
61
|
+
fetchImpl;
|
|
62
|
+
constructor(options = {}) {
|
|
63
|
+
this.baseUrl = checkBaseUrl(options.baseUrl ?? DEFAULT_BASE_URL);
|
|
64
|
+
const impl = options.fetch ?? globalThis.fetch;
|
|
65
|
+
if (typeof impl !== "function") {
|
|
66
|
+
throw new Error("chargealong: no fetch in this runtime. Pass one: new ChargeAlong({ fetch })");
|
|
67
|
+
}
|
|
68
|
+
this.fetchImpl = options.fetch ? impl : impl.bind(globalThis);
|
|
69
|
+
}
|
|
70
|
+
/** Every country with charging sites, and how many each has. */
|
|
71
|
+
async countries(options = {}) {
|
|
72
|
+
const body = await this.get("/v1/countries", {}, options);
|
|
73
|
+
return Array.isArray(body.data) ? body.data : [];
|
|
74
|
+
}
|
|
75
|
+
/** What the whole directory holds: countries with their busiest places. */
|
|
76
|
+
async overview(options = {}) {
|
|
77
|
+
return (await this.get("/v1/overview", {}, options)).data;
|
|
78
|
+
}
|
|
79
|
+
/** One country: its regions and their counts. */
|
|
80
|
+
async country(country, options = {}) {
|
|
81
|
+
return (await this.get(`/v1/countries/${slug(country, "country")}`, {}, options)).data;
|
|
82
|
+
}
|
|
83
|
+
/** One region: the places in it that have charging sites. */
|
|
84
|
+
async region(country, region, options = {}) {
|
|
85
|
+
const path = `/v1/countries/${slug(country, "country")}/regions/${slug(region, "region")}`;
|
|
86
|
+
return (await this.get(path, {}, options)).data;
|
|
87
|
+
}
|
|
88
|
+
/** Every charging network in a country, with its site and region counts. */
|
|
89
|
+
async networks(country, options = {}) {
|
|
90
|
+
return (await this.get(`/v1/countries/${slug(country, "country")}/networks`, {}, options)).data;
|
|
91
|
+
}
|
|
92
|
+
/** One network in a country: where it reaches, and a sample of its sites. */
|
|
93
|
+
async network(country, network, options = {}) {
|
|
94
|
+
const path = `/v1/countries/${slug(country, "country")}/networks/${slug(network, "network")}`;
|
|
95
|
+
return (await this.get(path, {}, options)).data;
|
|
96
|
+
}
|
|
97
|
+
/** One suburb or town: every charging site in it, with facet counts. */
|
|
98
|
+
async locality(country, region, locality, options = {}) {
|
|
99
|
+
const path = `/v1/localities/${slug(country, "country")}/${slug(region, "region")}/${slug(locality, "locality")}`;
|
|
100
|
+
return (await this.get(path, {}, options)).data;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* One charging site: connectors, power, price, access, network, sources,
|
|
104
|
+
* and what is close by.
|
|
105
|
+
*
|
|
106
|
+
* The id is permanent. Rejects with {@link NotFound} for an id that never
|
|
107
|
+
* existed, and with {@link Gone} for a site that was removed, so code holding
|
|
108
|
+
* stored ids can drop the retired ones.
|
|
109
|
+
*/
|
|
110
|
+
async site(publicId, options = {}) {
|
|
111
|
+
return (await this.get(`/v1/sites/${slug(publicId, "site id")}`, {}, options)).data;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Places, postcodes and sites matching a name, for a search box.
|
|
115
|
+
*
|
|
116
|
+
* Fewer than three letters or digits answers empty without a request, which
|
|
117
|
+
* is what the service would answer anyway. Debounce and pass a `signal`.
|
|
118
|
+
*/
|
|
119
|
+
async search(term, options = {}) {
|
|
120
|
+
const q = String(term ?? "").trim();
|
|
121
|
+
if (q.length > MAX_QUERY) {
|
|
122
|
+
throw new Error(`chargealong: a search is at most ${MAX_QUERY} characters`);
|
|
123
|
+
}
|
|
124
|
+
const significant = q.match(/[\p{L}\p{N}]/gu)?.length ?? 0;
|
|
125
|
+
if (significant < MIN_QUERY) return { localities: [], postcodes: [], sites: [] };
|
|
126
|
+
let prefer;
|
|
127
|
+
if (options.prefer !== void 0) {
|
|
128
|
+
prefer = options.prefer.trim().toUpperCase();
|
|
129
|
+
if (!/^[A-Z]{2}$/.test(prefer)) {
|
|
130
|
+
throw new Error(`chargealong: prefer ${options.prefer} is not a two letter country code`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const body = await this.get("/v1/search", { q, prefer }, options);
|
|
134
|
+
const data = body.data ?? {};
|
|
135
|
+
return { localities: data.localities ?? [], postcodes: data.postcodes ?? [], sites: data.sites ?? [] };
|
|
136
|
+
}
|
|
137
|
+
/** The charging sites nearest a coordinate, nearest first. */
|
|
138
|
+
async nearby(options) {
|
|
139
|
+
const { lat, lng } = point(options);
|
|
140
|
+
const connector = options.connector === void 0 ? void 0 : connectors(Array.isArray(options.connector) ? options.connector : [options.connector], "connector");
|
|
141
|
+
const body = await this.get(
|
|
142
|
+
"/v1/nearby",
|
|
143
|
+
{
|
|
144
|
+
lat,
|
|
145
|
+
lng,
|
|
146
|
+
min_kw: bounded(options.minKw, "minKw", 0, 400),
|
|
147
|
+
radius_km: bounded(options.radiusKm, "radiusKm", 1, 150),
|
|
148
|
+
limit: whole(options.limit, "limit", 1, 50),
|
|
149
|
+
connector,
|
|
150
|
+
network: options.network?.trim() || void 0
|
|
151
|
+
},
|
|
152
|
+
options
|
|
153
|
+
);
|
|
154
|
+
const data = body.data ?? {};
|
|
155
|
+
return { near: data.near ?? null, sites: data.sites ?? [] };
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* A road trip from A to B through charging stops: the route, where to stop,
|
|
159
|
+
* how long to charge at each, and the battery on arrival.
|
|
160
|
+
*
|
|
161
|
+
* Rejects with a {@link BadRequest} of status 422 when there is no road route
|
|
162
|
+
* between the two points (across water, say), and with a 503 when trip
|
|
163
|
+
* planning is briefly unavailable.
|
|
164
|
+
*/
|
|
165
|
+
async planTrip(options) {
|
|
166
|
+
const from = point(options.from ?? {});
|
|
167
|
+
const to = point(options.to ?? {});
|
|
168
|
+
if (from.lat === to.lat && from.lng === to.lng) {
|
|
169
|
+
throw new Error("chargealong: a trip must end somewhere other than where it starts");
|
|
170
|
+
}
|
|
171
|
+
const rangeKm = bounded(options.rangeKm, "rangeKm", 50, 1500);
|
|
172
|
+
if (rangeKm === void 0) throw new Error("chargealong: rangeKm is required");
|
|
173
|
+
const body = await this.get(
|
|
174
|
+
"/v1/trips/plan",
|
|
175
|
+
{
|
|
176
|
+
from: `${from.lat},${from.lng}`,
|
|
177
|
+
to: `${to.lat},${to.lng}`,
|
|
178
|
+
range_km: rangeKm,
|
|
179
|
+
reserve: bounded(options.reserve, "reserve", 5, 50),
|
|
180
|
+
start: bounded(options.start, "start", 5, 100),
|
|
181
|
+
charge_to: bounded(options.chargeTo, "chargeTo", 50, 100),
|
|
182
|
+
battery_kwh: bounded(options.batteryKwh, "batteryKwh", 10, 250),
|
|
183
|
+
max_dc_kw: bounded(options.maxDcKw, "maxDcKw", 20, 400),
|
|
184
|
+
max_ac_kw: bounded(options.maxAcKw, "maxAcKw", 3, 22),
|
|
185
|
+
min_kw: bounded(options.minKw, "minKw", 0, 350),
|
|
186
|
+
// One parameter, comma separated: the planner reads it that way.
|
|
187
|
+
connectors: options.connectors === void 0 ? void 0 : connectors(options.connectors, "connectors").join(",")
|
|
188
|
+
},
|
|
189
|
+
options
|
|
190
|
+
);
|
|
191
|
+
return body.data;
|
|
192
|
+
}
|
|
193
|
+
/** Electric cars: battery, range and how they charge. */
|
|
194
|
+
async vehicles(options = {}) {
|
|
195
|
+
const body = await this.get(
|
|
196
|
+
"/v1/vehicles",
|
|
197
|
+
{
|
|
198
|
+
q: options.q?.trim() || void 0,
|
|
199
|
+
limit: whole(options.limit, "limit", 1, 100),
|
|
200
|
+
all: options.all ? "true" : void 0
|
|
201
|
+
},
|
|
202
|
+
options
|
|
203
|
+
);
|
|
204
|
+
return { vehicles: Array.isArray(body.data) ? body.data : [], source: sourceOf(body) };
|
|
205
|
+
}
|
|
206
|
+
/** One electric car, with how long it takes to charge on chargers of each size. */
|
|
207
|
+
async vehicle(slugName, options = {}) {
|
|
208
|
+
const body = await this.get(`/v1/vehicles/${slug(slugName, "vehicle")}`, {}, options);
|
|
209
|
+
return { vehicle: body.data, source: sourceOf(body) };
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Where a page on chargealong.io went, if it moved. Null for a page that
|
|
213
|
+
* never did, which is most of them.
|
|
214
|
+
*/
|
|
215
|
+
async redirect(path, options = {}) {
|
|
216
|
+
const p = String(path ?? "").trim();
|
|
217
|
+
if (!p.startsWith("/") || p.startsWith("//") || p.includes("://") || p.includes("\\")) {
|
|
218
|
+
throw new Error(`chargealong: ${JSON.stringify(path)} is not a path on chargealong.io`);
|
|
219
|
+
}
|
|
220
|
+
try {
|
|
221
|
+
return (await this.get("/v1/redirect", { path: p }, options)).data ?? null;
|
|
222
|
+
} catch (err) {
|
|
223
|
+
if (err instanceof NotFound) return null;
|
|
224
|
+
throw err;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
async get(path, params, options) {
|
|
228
|
+
const query = new URLSearchParams();
|
|
229
|
+
for (const [key, value] of Object.entries(params)) {
|
|
230
|
+
if (value === void 0 || value === "") continue;
|
|
231
|
+
if (Array.isArray(value)) {
|
|
232
|
+
for (const v of value) query.append(key, v);
|
|
233
|
+
} else {
|
|
234
|
+
query.set(key, String(value));
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
const url = this.baseUrl + path + (query.size ? `?${query}` : "");
|
|
238
|
+
const response = await this.fetchImpl(url, {
|
|
239
|
+
method: "GET",
|
|
240
|
+
headers: { Accept: "application/json" },
|
|
241
|
+
signal: options.signal,
|
|
242
|
+
// Nothing here is authenticated, and a cookie on a cacheable GET is how a
|
|
243
|
+
// shared cache comes to hold something that belongs to one visitor.
|
|
244
|
+
credentials: "omit",
|
|
245
|
+
// The API does not redirect; one on the way is a proxy, not an answer.
|
|
246
|
+
redirect: "error"
|
|
247
|
+
});
|
|
248
|
+
let parsed;
|
|
249
|
+
try {
|
|
250
|
+
parsed = await response.json();
|
|
251
|
+
} catch {
|
|
252
|
+
parsed = void 0;
|
|
253
|
+
}
|
|
254
|
+
const body = parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
|
|
255
|
+
if (!response.ok) {
|
|
256
|
+
const retryAfter = Number(response.headers.get("Retry-After"));
|
|
257
|
+
throw errorFor(
|
|
258
|
+
response.status,
|
|
259
|
+
typeof body.title === "string" ? body.title : "",
|
|
260
|
+
typeof body.detail === "string" ? body.detail : "",
|
|
261
|
+
Number.isFinite(retryAfter) && retryAfter > 0 ? retryAfter : void 0
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
return body;
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
function createClient(options = {}) {
|
|
268
|
+
return new ChargeAlong(options);
|
|
269
|
+
}
|
|
270
|
+
function sourceOf(body) {
|
|
271
|
+
const s = body.source ?? {};
|
|
272
|
+
return { name: s.name ?? "", url: s.url ?? "", licence: s.licence ?? "" };
|
|
273
|
+
}
|
|
274
|
+
function slug(value, what) {
|
|
275
|
+
const text = String(value ?? "").trim();
|
|
276
|
+
if (!text || text === "." || text === "..") throw new Error(`chargealong: no ${what}`);
|
|
277
|
+
return encodeURIComponent(text);
|
|
278
|
+
}
|
|
279
|
+
function point(p) {
|
|
280
|
+
const lat = p.lat;
|
|
281
|
+
const lng = p.lng;
|
|
282
|
+
if (!(lat >= -90 && lat <= 90) || !(lng >= -180 && lng <= 180)) {
|
|
283
|
+
throw new Error(`chargealong: (${lat}, ${lng}) is not a point on the globe; lat -90..90, lng -180..180`);
|
|
284
|
+
}
|
|
285
|
+
return { lat, lng };
|
|
286
|
+
}
|
|
287
|
+
function bounded(value, name, lo, hi) {
|
|
288
|
+
if (value === void 0) return void 0;
|
|
289
|
+
if (!(typeof value === "number" && value >= lo && value <= hi)) {
|
|
290
|
+
throw new Error(`chargealong: ${name} must be a number from ${lo} to ${hi}, not ${value}`);
|
|
291
|
+
}
|
|
292
|
+
return value;
|
|
293
|
+
}
|
|
294
|
+
function whole(value, name, lo, hi) {
|
|
295
|
+
const v = bounded(value, name, lo, hi);
|
|
296
|
+
if (v !== void 0 && !Number.isInteger(v)) {
|
|
297
|
+
throw new Error(`chargealong: ${name} must be a whole number, not ${value}`);
|
|
298
|
+
}
|
|
299
|
+
return v;
|
|
300
|
+
}
|
|
301
|
+
function connectors(list, name) {
|
|
302
|
+
if (list.length === 0) throw new Error(`chargealong: ${name} is empty; leave it out for any`);
|
|
303
|
+
for (const c of list) {
|
|
304
|
+
if (!CONNECTORS.includes(c)) {
|
|
305
|
+
throw new Error(`chargealong: ${c} is not a connector the service knows: ${CONNECTORS.join(", ")}`);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return [...list];
|
|
309
|
+
}
|
|
310
|
+
function checkBaseUrl(raw) {
|
|
311
|
+
let parsed;
|
|
312
|
+
try {
|
|
313
|
+
parsed = new URL(raw);
|
|
314
|
+
} catch {
|
|
315
|
+
throw new Error(`chargealong: base URL ${raw} is not absolute`);
|
|
316
|
+
}
|
|
317
|
+
if (parsed.username || parsed.password) {
|
|
318
|
+
throw new Error(`chargealong: base URL ${raw} carries credentials, and the host it would reach is not the one it reads as`);
|
|
319
|
+
}
|
|
320
|
+
if (/[?#]/.test(raw)) {
|
|
321
|
+
throw new Error(`chargealong: base URL ${raw} has a query or a fragment, which would swallow the path`);
|
|
322
|
+
}
|
|
323
|
+
const loopback = ["localhost", "127.0.0.1", "[::1]"].includes(parsed.hostname);
|
|
324
|
+
if (parsed.protocol === "https:" || parsed.protocol === "http:" && loopback) {
|
|
325
|
+
return raw.replace(/\/+$/, "");
|
|
326
|
+
}
|
|
327
|
+
if (parsed.protocol === "http:") {
|
|
328
|
+
throw new Error(`chargealong: base URL ${raw} is plaintext http to a public host, which would send where people are in the clear`);
|
|
329
|
+
}
|
|
330
|
+
throw new Error(`chargealong: base URL ${raw} has scheme ${parsed.protocol}, want https`);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// src/paths.ts
|
|
334
|
+
var SITE_URL = "https://chargealong.io";
|
|
335
|
+
var LANG = "en";
|
|
336
|
+
function pageUrl(row) {
|
|
337
|
+
const path = typeof row === "string" ? row : row.path ?? "";
|
|
338
|
+
if (!path.startsWith("/") || path.startsWith("//") || path.includes("\\") || path.includes("://")) return "";
|
|
339
|
+
return SITE_URL + path;
|
|
340
|
+
}
|
|
341
|
+
function countryPath(country) {
|
|
342
|
+
return country ? `/${LANG}/${country}/` : "";
|
|
343
|
+
}
|
|
344
|
+
function regionPath(country, region) {
|
|
345
|
+
return country && region ? `/${LANG}/${country}/${region}/` : "";
|
|
346
|
+
}
|
|
347
|
+
function localityPath(country, region, locality) {
|
|
348
|
+
return country && region && locality ? `/${LANG}/${country}/${region}/${locality}/` : "";
|
|
349
|
+
}
|
|
350
|
+
function networksPath(country) {
|
|
351
|
+
return country ? `/${LANG}/${country}/networks/` : "";
|
|
352
|
+
}
|
|
353
|
+
function networkPath(country, network) {
|
|
354
|
+
return country && network ? `/${LANG}/${country}/networks/${network}/` : "";
|
|
355
|
+
}
|
|
356
|
+
function vehiclePath(slug2) {
|
|
357
|
+
return slug2 ? `/${LANG}/vehicles/${slug2}/` : "";
|
|
358
|
+
}
|
|
359
|
+
function metres(distanceKm) {
|
|
360
|
+
return Math.round(distanceKm * 1e3);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
exports.BadRequest = BadRequest;
|
|
364
|
+
exports.CONNECTORS = CONNECTORS;
|
|
365
|
+
exports.ChargeAlong = ChargeAlong;
|
|
366
|
+
exports.ChargeAlongError = ChargeAlongError;
|
|
367
|
+
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL;
|
|
368
|
+
exports.Gone = Gone;
|
|
369
|
+
exports.MIN_QUERY = MIN_QUERY;
|
|
370
|
+
exports.NotFound = NotFound;
|
|
371
|
+
exports.RateLimited = RateLimited;
|
|
372
|
+
exports.SITE_URL = SITE_URL;
|
|
373
|
+
exports.VERSION = VERSION;
|
|
374
|
+
exports.countryPath = countryPath;
|
|
375
|
+
exports.createClient = createClient;
|
|
376
|
+
exports.localityPath = localityPath;
|
|
377
|
+
exports.metres = metres;
|
|
378
|
+
exports.networkPath = networkPath;
|
|
379
|
+
exports.networksPath = networksPath;
|
|
380
|
+
exports.pageUrl = pageUrl;
|
|
381
|
+
exports.regionPath = regionPath;
|
|
382
|
+
exports.vehiclePath = vehiclePath;
|