monagree-locs 2.0.3 → 2.0.4

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/README.md CHANGED
@@ -8,6 +8,8 @@ To install, run:
8
8
 
9
9
  > Only showing states & cities in Nigeria for now
10
10
 
11
+ > Please note that for state capitals with more than one LGAs, .isCapital() is only true for the main travel hub
12
+
11
13
  Please enjoy this accurate & up-to-date location package from the open source team at Monagree. Monagree provides tools for devs to build ecommerce and logistics websites easily. Check out our javascript framework (CLI) on npm [monagree-tools](https://www.npmjs.com/package/monagree-tools "Monagree JS Framework").
12
14
 
13
15
  ## Become a Monagree Developer
package/dist/classes.js CHANGED
@@ -19,7 +19,7 @@ var mLoc = /** @class */ (function () {
19
19
  return this.data.center.lon;
20
20
  };
21
21
  mLoc.prototype.isCapital = function () {
22
- return !!this.data.isCapital;
22
+ return this.data.isCapital ? this.data.isCapital : false;
23
23
  };
24
24
  return mLoc;
25
25
  }());
package/dist/locs.js CHANGED
@@ -124,7 +124,6 @@ exports.locs = {
124
124
  },
125
125
  "15": {
126
126
  "name": "Umuahia South",
127
- "isCapital": true,
128
127
  "center": {
129
128
  "lat": "5.5089",
130
129
  "lon": "7.5181"
@@ -296,7 +295,6 @@ exports.locs = {
296
295
  },
297
296
  "21": {
298
297
  "name": "Yola South",
299
- "isCapital": true,
300
298
  "center": {
301
299
  "lat": "9.2095",
302
300
  "lon": "12.4788"
@@ -568,7 +566,6 @@ exports.locs = {
568
566
  },
569
567
  "04": {
570
568
  "name": "Awka North",
571
- "isCapital": true,
572
569
  "center": {
573
570
  "lat": "6.2937",
574
571
  "lon": "7.0553"
@@ -1341,7 +1338,6 @@ exports.locs = {
1341
1338
  },
1342
1339
  "08": {
1343
1340
  "name": "Calabar South",
1344
- "isCapital": true,
1345
1341
  "center": {
1346
1342
  "lat": "4.9536",
1347
1343
  "lon": "8.3224"
@@ -1714,7 +1710,6 @@ exports.locs = {
1714
1710
  },
1715
1711
  "01": {
1716
1712
  "name": "Egor",
1717
- "isCapital": true,
1718
1713
  "center": {
1719
1714
  "lat": "6.4659",
1720
1715
  "lon": "6.3408"
@@ -1778,7 +1773,6 @@ exports.locs = {
1778
1773
  },
1779
1774
  "10": {
1780
1775
  "name": "Ikpoba-Okha",
1781
- "isCapital": true,
1782
1776
  "center": {
1783
1777
  "lat": "6.3050",
1784
1778
  "lon": "6.6736"
@@ -1981,7 +1975,6 @@ exports.locs = {
1981
1975
  },
1982
1976
  "02": {
1983
1977
  "name": "Enugu East",
1984
- "isCapital": true,
1985
1978
  "center": {
1986
1979
  "lat": "6.4421",
1987
1980
  "lon": "7.6483"
@@ -1997,7 +1990,6 @@ exports.locs = {
1997
1990
  },
1998
1991
  "04": {
1999
1992
  "name": "Enugu South",
2000
- "isCapital": true,
2001
1993
  "center": {
2002
1994
  "lat": "6.3660",
2003
1995
  "lon": "7.4669"
@@ -2361,7 +2353,6 @@ exports.locs = {
2361
2353
  },
2362
2354
  "25": {
2363
2355
  "name": "Owerri North",
2364
- "isCapital": true,
2365
2356
  "center": {
2366
2357
  "lat": "5.4921",
2367
2358
  "lon": "7.0357"
@@ -2369,7 +2360,6 @@ exports.locs = {
2369
2360
  },
2370
2361
  "26": {
2371
2362
  "name": "Owerri West",
2372
- "isCapital": true,
2373
2363
  "center": {
2374
2364
  "lat": "5.5279",
2375
2365
  "lon": "7.0276"
@@ -2649,7 +2639,6 @@ exports.locs = {
2649
2639
  },
2650
2640
  "09": {
2651
2641
  "name": "Kaduna South",
2652
- "isCapital": true,
2653
2642
  "center": {
2654
2643
  "lat": "10.2592",
2655
2644
  "lon": "7.5277"
@@ -3651,7 +3640,6 @@ exports.locs = {
3651
3640
  },
3652
3641
  "05": {
3653
3642
  "name": "Ilorin East",
3654
- "isCapital": true,
3655
3643
  "center": {
3656
3644
  "lat": "8.4951",
3657
3645
  "lon": "4.7211"
@@ -3659,7 +3647,6 @@ exports.locs = {
3659
3647
  },
3660
3648
  "06": {
3661
3649
  "name": "Ilorin South",
3662
- "isCapital": true,
3663
3650
  "center": {
3664
3651
  "lat": "8.4590",
3665
3652
  "lon": "4.4878"
@@ -4019,7 +4006,6 @@ exports.locs = {
4019
4006
  },
4020
4007
  "04": {
4021
4008
  "name": "Bosso",
4022
- "isCapital": true,
4023
4009
  "center": {
4024
4010
  "lat": "9.9703",
4025
4011
  "lon": "6.3814"
@@ -4177,7 +4163,6 @@ exports.locs = {
4177
4163
  "lgas": {
4178
4164
  "00": {
4179
4165
  "name": "Abeokuta North",
4180
- "isCapital": true,
4181
4166
  "center": {
4182
4167
  "lat": "7.4500",
4183
4168
  "lon": "3.3500"
@@ -4356,7 +4341,6 @@ exports.locs = {
4356
4341
  },
4357
4342
  "04": {
4358
4343
  "name": "Akure North",
4359
- "isCapital": true,
4360
4344
  "center": {
4361
4345
  "lat": "7.3171",
4362
4346
  "lon": "5.7513"
@@ -4720,7 +4704,6 @@ exports.locs = {
4720
4704
  },
4721
4705
  "05": {
4722
4706
  "name": "Ibadan North",
4723
- "isCapital": true,
4724
4707
  "center": {
4725
4708
  "lat": "7.4116",
4726
4709
  "lon": "3.9256"
@@ -4736,7 +4719,6 @@ exports.locs = {
4736
4719
  },
4737
4720
  "07": {
4738
4721
  "name": "Ibadan North-West",
4739
- "isCapital": true,
4740
4722
  "center": {
4741
4723
  "lat": "7.4197",
4742
4724
  "lon": "3.8340"
@@ -4744,7 +4726,6 @@ exports.locs = {
4744
4726
  },
4745
4727
  "08": {
4746
4728
  "name": "Ibadan South-East",
4747
- "isCapital": true,
4748
4729
  "center": {
4749
4730
  "lat": "7.3420",
4750
4731
  "lon": "3.9465"
@@ -4752,7 +4733,6 @@ exports.locs = {
4752
4733
  },
4753
4734
  "09": {
4754
4735
  "name": "Ibadan South-West",
4755
- "isCapital": true,
4756
4736
  "center": {
4757
4737
  "lat": "7.3770",
4758
4738
  "lon": "3.8956"
@@ -4951,7 +4931,6 @@ exports.locs = {
4951
4931
  },
4952
4932
  "03": {
4953
4933
  "name": "Jos East",
4954
- "isCapital": true,
4955
4934
  "center": {
4956
4935
  "lat": "9.7986",
4957
4936
  "lon": "9.9823"
@@ -4967,7 +4946,6 @@ exports.locs = {
4967
4946
  },
4968
4947
  "05": {
4969
4948
  "name": "Jos South",
4970
- "isCapital": true,
4971
4949
  "center": {
4972
4950
  "lat": "9.8004",
4973
4951
  "lon": "8.9963"
@@ -5346,7 +5324,6 @@ exports.locs = {
5346
5324
  },
5347
5325
  "16": {
5348
5326
  "name": "Sokoto South",
5349
- "isCapital": true,
5350
5327
  "center": {
5351
5328
  "lat": "13.0688",
5352
5329
  "lon": "5.2160"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monagree-locs",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "All countries + States and LGAs in Nigeria (with GPS coordinates)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",