csv2geo-sdk 1.3.0 → 1.4.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +5 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "csv2geo-sdk",
3
- "version": "1.3.0",
4
- "description": "Node.js SDK for CSV2GEO Geocoding API — 461M+ addresses, 39 countries, 45+ endpoints. Forward, reverse, batch, places, boundaries (postcode → polygon, ancestors walk-up, children walk-down, consolidated cities), IP geolocation with county overlay, coverage, autocomplete. 3,000 free requests/day.",
3
+ "version": "1.4.0",
4
+ "description": "Node.js SDK for CSV2GEO Geocoding API — 461M+ addresses, 39 countries, 48+ endpoints. Forward, reverse, batch, places, boundaries (postcode → polygon, ancestors walk-up, children walk-down, consolidated cities), IP geolocation with county overlay, coverage, autocomplete. 3,000 free requests/day.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
7
7
  "files": [
package/src/index.js CHANGED
@@ -75,7 +75,7 @@ class Client {
75
75
  headers: {
76
76
  'Authorization': `Bearer ${this.apiKey}`,
77
77
  'Content-Type': 'application/json',
78
- 'User-Agent': 'csv2geo-node/1.3.0',
78
+ 'User-Agent': 'csv2geo-node/1.4.0',
79
79
  },
80
80
  signal: controller.signal,
81
81
  };
@@ -469,6 +469,7 @@ class Client {
469
469
  const params = { code, country };
470
470
  if (options.include) params.include = options.include;
471
471
  if (options.precision) params.precision = options.precision;
472
+ if (options.lang) params.lang = options.lang;
472
473
  return this._request('GET', '/divisions/by-postcode', params);
473
474
  }
474
475
 
@@ -536,6 +537,7 @@ class Client {
536
537
  if (options.include) params.include = options.include;
537
538
  if (options.precision) params.precision = options.precision;
538
539
  if (options.maxDepth) params.max_depth = options.maxDepth;
540
+ if (options.lang) params.lang = options.lang;
539
541
  return this._request('GET', `/divisions/ancestors/${encodeURIComponent(divisionId)}`, params);
540
542
  }
541
543
 
@@ -557,6 +559,7 @@ class Client {
557
559
  if (options.precision) params.precision = options.precision;
558
560
  if (options.subtype) params.subtype = options.subtype;
559
561
  if (options.limit) params.limit = options.limit;
562
+ if (options.lang) params.lang = options.lang;
560
563
  return this._request('GET', `/divisions/children/${encodeURIComponent(divisionId)}`, params);
561
564
  }
562
565
 
@@ -577,6 +580,7 @@ class Client {
577
580
  const params = {};
578
581
  if (options.include) params.include = options.include;
579
582
  if (options.precision) params.precision = options.precision;
583
+ if (options.lang) params.lang = options.lang;
580
584
  return this._request('GET', `/divisions/consolidated/${encodeURIComponent(divisionId)}`, params);
581
585
  }
582
586