rate_center 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +7 -0
  2. data/.release-please-manifest.json +3 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +26 -0
  5. data/.tool-versions +1 -0
  6. data/CHANGELOG.md +17 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +102 -0
  9. data/Rakefile +12 -0
  10. data/data/cities/us/ak.yml +6420 -0
  11. data/data/cities/us/al.yml +10684 -0
  12. data/data/cities/us/ar.yml +11308 -0
  13. data/data/cities/us/az.yml +8396 -0
  14. data/data/cities/us/ca.yml +30626 -0
  15. data/data/cities/us/co.yml +9787 -0
  16. data/data/cities/us/ct.yml +3388 -0
  17. data/data/cities/us/dc.yml +12 -0
  18. data/data/cities/us/de.yml +1424 -0
  19. data/data/cities/us/fl.yml +17198 -0
  20. data/data/cities/us/ga.yml +12062 -0
  21. data/data/cities/us/hi.yml +2846 -0
  22. data/data/cities/us/ia.yml +18822 -0
  23. data/data/cities/us/id.yml +4324 -0
  24. data/data/cities/us/il.yml +27206 -0
  25. data/data/cities/us/in.yml +17594 -0
  26. data/data/cities/us/ks.yml +13626 -0
  27. data/data/cities/us/ky.yml +9958 -0
  28. data/data/cities/us/la.yml +8786 -0
  29. data/data/cities/us/ma.yml +2288 -0
  30. data/data/cities/us/md.yml +10738 -0
  31. data/data/cities/us/me.yml +1194 -0
  32. data/data/cities/us/mi.yml +13662 -0
  33. data/data/cities/us/mn.yml +16378 -0
  34. data/data/cities/us/mo.yml +21572 -0
  35. data/data/cities/us/ms.yml +7762 -0
  36. data/data/cities/us/mt.yml +9032 -0
  37. data/data/cities/us/nc.yml +14140 -0
  38. data/data/cities/us/nd.yml +7300 -0
  39. data/data/cities/us/ne.yml +10622 -0
  40. data/data/cities/us/nh.yml +740 -0
  41. data/data/cities/us/nj.yml +11848 -0
  42. data/data/cities/us/nm.yml +9352 -0
  43. data/data/cities/us/nv.yml +2652 -0
  44. data/data/cities/us/ny.yml +17946 -0
  45. data/data/cities/us/oh.yml +22704 -0
  46. data/data/cities/us/ok.yml +15154 -0
  47. data/data/cities/us/or.yml +7680 -0
  48. data/data/cities/us/pa.yml +32546 -0
  49. data/data/cities/us/pr.yml +5121 -0
  50. data/data/cities/us/ri.yml +560 -0
  51. data/data/cities/us/sc.yml +8768 -0
  52. data/data/cities/us/sd.yml +8768 -0
  53. data/data/cities/us/tn.yml +9404 -0
  54. data/data/cities/us/tx.yml +36996 -0
  55. data/data/cities/us/ut.yml +6308 -0
  56. data/data/cities/us/va.yml +12194 -0
  57. data/data/cities/us/vt.yml +1910 -0
  58. data/data/cities/us/wa.yml +11900 -0
  59. data/data/cities/us/wi.yml +14564 -0
  60. data/data/cities/us/wv.yml +7984 -0
  61. data/data/cities/us/wy.yml +3674 -0
  62. data/data/rate_centers/us/.keep +0 -0
  63. data/data/rate_centers/us/ak.yml +4584 -0
  64. data/data/rate_centers/us/al.yml +9798 -0
  65. data/data/rate_centers/us/ar.yml +15882 -0
  66. data/data/rate_centers/us/as.yml +119 -0
  67. data/data/rate_centers/us/az.yml +4159 -0
  68. data/data/rate_centers/us/ca.yml +21059 -0
  69. data/data/rate_centers/us/co.yml +6502 -0
  70. data/data/rate_centers/us/ct.yml +4086 -0
  71. data/data/rate_centers/us/dc.yml +16 -0
  72. data/data/rate_centers/us/de.yml +1133 -0
  73. data/data/rate_centers/us/fl.yml +10773 -0
  74. data/data/rate_centers/us/ga.yml +10143 -0
  75. data/data/rate_centers/us/gu.yml +218 -0
  76. data/data/rate_centers/us/hi.yml +1130 -0
  77. data/data/rate_centers/us/ia.yml +15438 -0
  78. data/data/rate_centers/us/id.yml +4357 -0
  79. data/data/rate_centers/us/il.yml +25322 -0
  80. data/data/rate_centers/us/in.yml +13924 -0
  81. data/data/rate_centers/us/ks.yml +12312 -0
  82. data/data/rate_centers/us/ky.yml +18629 -0
  83. data/data/rate_centers/us/la.yml +7785 -0
  84. data/data/rate_centers/us/ma.yml +7947 -0
  85. data/data/rate_centers/us/md.yml +6956 -0
  86. data/data/rate_centers/us/me.yml +9213 -0
  87. data/data/rate_centers/us/mi.yml +15653 -0
  88. data/data/rate_centers/us/mn.yml +15195 -0
  89. data/data/rate_centers/us/mo.yml +18238 -0
  90. data/data/rate_centers/us/mp.yml +29 -0
  91. data/data/rate_centers/us/ms.yml +7913 -0
  92. data/data/rate_centers/us/mt.yml +5659 -0
  93. data/data/rate_centers/us/nc.yml +11641 -0
  94. data/data/rate_centers/us/nd.yml +7341 -0
  95. data/data/rate_centers/us/ne.yml +8727 -0
  96. data/data/rate_centers/us/nh.yml +4499 -0
  97. data/data/rate_centers/us/nj.yml +13710 -0
  98. data/data/rate_centers/us/nm.yml +4636 -0
  99. data/data/rate_centers/us/nv.yml +2629 -0
  100. data/data/rate_centers/us/ny.yml +34576 -0
  101. data/data/rate_centers/us/oh.yml +20184 -0
  102. data/data/rate_centers/us/ok.yml +9970 -0
  103. data/data/rate_centers/us/or.yml +6867 -0
  104. data/data/rate_centers/us/pa.yml +40360 -0
  105. data/data/rate_centers/us/pr.yml +1899 -0
  106. data/data/rate_centers/us/ri.yml +1225 -0
  107. data/data/rate_centers/us/sc.yml +6251 -0
  108. data/data/rate_centers/us/sd.yml +6256 -0
  109. data/data/rate_centers/us/tn.yml +9289 -0
  110. data/data/rate_centers/us/tx.yml +27690 -0
  111. data/data/rate_centers/us/ut.yml +4712 -0
  112. data/data/rate_centers/us/va.yml +17679 -0
  113. data/data/rate_centers/us/vi.yml +146 -0
  114. data/data/rate_centers/us/vt.yml +4667 -0
  115. data/data/rate_centers/us/wa.yml +8151 -0
  116. data/data/rate_centers/us/wi.yml +12872 -0
  117. data/data/rate_centers/us/wv.yml +14818 -0
  118. data/data/rate_centers/us/wy.yml +2852 -0
  119. data/lib/rate_center/city.rb +33 -0
  120. data/lib/rate_center/collection.rb +23 -0
  121. data/lib/rate_center/data_loader.rb +75 -0
  122. data/lib/rate_center/data_prep.rb +121 -0
  123. data/lib/rate_center/data_source/local_calling_guide.rb +107 -0
  124. data/lib/rate_center/data_source/simple_maps.rb +93 -0
  125. data/lib/rate_center/distance.rb +3 -0
  126. data/lib/rate_center/errors.rb +6 -0
  127. data/lib/rate_center/rate_center.rb +34 -0
  128. data/lib/rate_center/vector.rb +3 -0
  129. data/lib/rate_center/version.rb +5 -0
  130. data/lib/rate_center.rb +21 -0
  131. data/release-please-config.json +15 -0
  132. metadata +400 -0
@@ -0,0 +1,560 @@
1
+ ---
2
+ cities:
3
+ - country: US
4
+ region: RI
5
+ name: Ashaway
6
+ lat: '41.4260'
7
+ long: "-71.7852"
8
+ nearby_rate_centers:
9
+ - name: WESTERLY
10
+ distance:
11
+ value: 6.73
12
+ units: km
13
+ - name: CAROLINA
14
+ distance:
15
+ value: 10.82
16
+ units: km
17
+ - name: HOPEVALLEY
18
+ distance:
19
+ value: 11.07
20
+ units: km
21
+ - country: US
22
+ region: RI
23
+ name: Bradford
24
+ lat: '41.3944'
25
+ long: "-71.7541"
26
+ nearby_rate_centers:
27
+ - name: WESTERLY
28
+ distance:
29
+ value: 6.82
30
+ units: km
31
+ - name: CAROLINA
32
+ distance:
33
+ value: 10.3
34
+ units: km
35
+ - name: HOPEVALLEY
36
+ distance:
37
+ value: 13.27
38
+ units: km
39
+ - country: US
40
+ region: RI
41
+ name: Carolina
42
+ lat: '41.4625'
43
+ long: "-71.6585"
44
+ nearby_rate_centers:
45
+ - name: CAROLINA
46
+ distance:
47
+ value: 0.78
48
+ units: km
49
+ - name: HOPEVALLEY
50
+ distance:
51
+ value: 6.95
52
+ units: km
53
+ - name: NARRAGNSTT
54
+ distance:
55
+ value: 14.26
56
+ units: km
57
+ - country: US
58
+ region: RI
59
+ name: Central Falls
60
+ lat: '41.8901'
61
+ long: "-71.3934"
62
+ nearby_rate_centers:
63
+ - name: PAWTUCKET
64
+ distance:
65
+ value: 1.55
66
+ units: km
67
+ - name: PROVIDENCE
68
+ distance:
69
+ value: 7.85
70
+ units: km
71
+ - name: CENTREDALE
72
+ distance:
73
+ value: 8.41
74
+ units: km
75
+ - country: US
76
+ region: RI
77
+ name: Chepachet
78
+ lat: '41.9104'
79
+ long: "-71.6654"
80
+ nearby_rate_centers:
81
+ - name: PASCOAG
82
+ distance:
83
+ value: 5.86
84
+ units: km
85
+ - name: WGLOCESTER
86
+ distance:
87
+ value: 10.46
88
+ units: km
89
+ - name: SCITUATE
90
+ distance:
91
+ value: 10.61
92
+ units: km
93
+ - country: US
94
+ region: RI
95
+ name: Clayville
96
+ lat: '41.7734'
97
+ long: "-71.6854"
98
+ nearby_rate_centers:
99
+ - name: COVENTRY
100
+ distance:
101
+ value: 8.11
102
+ units: km
103
+ - name: SCITUATE
104
+ distance:
105
+ value: 10.25
106
+ units: km
107
+ - name: W WARWICK
108
+ distance:
109
+ value: 15.43
110
+ units: km
111
+ - country: US
112
+ region: RI
113
+ name: Cranston
114
+ lat: '41.7658'
115
+ long: "-71.4858"
116
+ nearby_rate_centers:
117
+ - name: W WARWICK
118
+ distance:
119
+ value: 6.88
120
+ units: km
121
+ - name: PROVIDENCE
122
+ distance:
123
+ value: 8.56
124
+ units: km
125
+ - name: WARWICK
126
+ distance:
127
+ value: 8.95
128
+ units: km
129
+ - country: US
130
+ region: RI
131
+ name: Cumberland Hill
132
+ lat: '41.9736'
133
+ long: "-71.4605"
134
+ nearby_rate_centers:
135
+ - name: CUMBLND HL
136
+ distance:
137
+ value: 0.3
138
+ units: km
139
+ - name: WOONSOCKET
140
+ distance:
141
+ value: 5.58
142
+ units: km
143
+ - name: PAWTUCKET
144
+ distance:
145
+ value: 12.36
146
+ units: km
147
+ - country: US
148
+ region: RI
149
+ name: East Providence
150
+ lat: '41.8065'
151
+ long: "-71.3565"
152
+ nearby_rate_centers:
153
+ - name: PROVIDENCE
154
+ distance:
155
+ value: 5.05
156
+ units: km
157
+ - name: PAWTUCKET
158
+ distance:
159
+ value: 8.3
160
+ units: km
161
+ - name: WARREN
162
+ distance:
163
+ value: 11.17
164
+ units: km
165
+ - country: US
166
+ region: RI
167
+ name: Foster Center
168
+ lat: '41.7898'
169
+ long: "-71.7328"
170
+ nearby_rate_centers:
171
+ - name: COVENTRY
172
+ distance:
173
+ value: 11.88
174
+ units: km
175
+ - name: SCITUATE
176
+ distance:
177
+ value: 12.7
178
+ units: km
179
+ - name: WGLOCESTER
180
+ distance:
181
+ value: 14.88
182
+ units: km
183
+ - country: US
184
+ region: RI
185
+ name: Greene
186
+ lat: '41.6988'
187
+ long: "-71.7339"
188
+ nearby_rate_centers:
189
+ - name: COVENTRY
190
+ distance:
191
+ value: 8.03
192
+ units: km
193
+ - name: W WARWICK
194
+ distance:
195
+ value: 17.77
196
+ units: km
197
+ - name: SCITUATE
198
+ distance:
199
+ value: 19.05
200
+ units: km
201
+ - country: US
202
+ region: RI
203
+ name: Greenville
204
+ lat: '41.8820'
205
+ long: "-71.5549"
206
+ nearby_rate_centers:
207
+ - name: SCITUATE
208
+ distance:
209
+ value: 6.23
210
+ units: km
211
+ - name: CENTREDALE
212
+ distance:
213
+ value: 6.4
214
+ units: km
215
+ - name: CUMBLND HL
216
+ distance:
217
+ value: 13.13
218
+ units: km
219
+ - country: US
220
+ region: RI
221
+ name: Harmony
222
+ lat: '41.8964'
223
+ long: "-71.6052"
224
+ nearby_rate_centers:
225
+ - name: SCITUATE
226
+ distance:
227
+ value: 7.17
228
+ units: km
229
+ - name: PASCOAG
230
+ distance:
231
+ value: 10.33
232
+ units: km
233
+ - name: CENTREDALE
234
+ distance:
235
+ value: 10.85
236
+ units: km
237
+ - country: US
238
+ region: RI
239
+ name: Harrisville
240
+ lat: '41.9687'
241
+ long: "-71.6768"
242
+ nearby_rate_centers:
243
+ - name: PASCOAG
244
+ distance:
245
+ value: 2.45
246
+ units: km
247
+ - name: WGLOCESTER
248
+ distance:
249
+ value: 11.14
250
+ units: km
251
+ - name: WOONSOCKET
252
+ distance:
253
+ value: 14.34
254
+ units: km
255
+ - country: US
256
+ region: RI
257
+ name: Hope Valley
258
+ lat: '41.5151'
259
+ long: "-71.7201"
260
+ nearby_rate_centers:
261
+ - name: HOPEVALLEY
262
+ distance:
263
+ value: 0.83
264
+ units: km
265
+ - name: CAROLINA
266
+ distance:
267
+ value: 8.18
268
+ units: km
269
+ - name: WESTERLY
270
+ distance:
271
+ value: 17.99
272
+ units: km
273
+ - country: US
274
+ region: RI
275
+ name: Kingston
276
+ lat: '41.4738'
277
+ long: "-71.5236"
278
+ nearby_rate_centers:
279
+ - name: NARRAGNSTT
280
+ distance:
281
+ value: 4.6
282
+ units: km
283
+ - name: CAROLINA
284
+ distance:
285
+ value: 11.68
286
+ units: km
287
+ - name: NO KINGSTN
288
+ distance:
289
+ value: 12.24
290
+ units: km
291
+ - country: US
292
+ region: RI
293
+ name: Melville
294
+ lat: '41.5611'
295
+ long: "-71.2937"
296
+ nearby_rate_centers:
297
+ - name: PORTSMOUTH
298
+ distance:
299
+ value: 6.75
300
+ units: km
301
+ - name: NEWPORT
302
+ distance:
303
+ value: 7.9
304
+ units: km
305
+ - name: JAMESTOWN
306
+ distance:
307
+ value: 9.47
308
+ units: km
309
+ - country: US
310
+ region: RI
311
+ name: Misquamicut
312
+ lat: '41.3237'
313
+ long: "-71.8220"
314
+ nearby_rate_centers:
315
+ - name: WESTERLY
316
+ distance:
317
+ value: 5.99
318
+ units: km
319
+ - name: CAROLINA
320
+ distance:
321
+ value: 19.87
322
+ units: km
323
+ - name: HOPEVALLEY
324
+ distance:
325
+ value: 22.58
326
+ units: km
327
+ - country: US
328
+ region: RI
329
+ name: Narragansett Pier
330
+ lat: '41.4281'
331
+ long: "-71.4668"
332
+ nearby_rate_centers:
333
+ - name: NARRAGNSTT
334
+ distance:
335
+ value: 2.4
336
+ units: km
337
+ - name: JAMESTOWN
338
+ distance:
339
+ value: 11.23
340
+ units: km
341
+ - name: NEWPORT
342
+ distance:
343
+ value: 14.83
344
+ units: km
345
+ - country: US
346
+ region: RI
347
+ name: Newport
348
+ lat: '41.4801'
349
+ long: "-71.3203"
350
+ nearby_rate_centers:
351
+ - name: NEWPORT
352
+ distance:
353
+ value: 1.49
354
+ units: km
355
+ - name: JAMESTOWN
356
+ distance:
357
+ value: 4.3
358
+ units: km
359
+ - name: LTLCOMPTON
360
+ distance:
361
+ value: 11.53
362
+ units: km
363
+ - country: US
364
+ region: RI
365
+ name: Newport East
366
+ lat: '41.5159'
367
+ long: "-71.2878"
368
+ nearby_rate_centers:
369
+ - name: NEWPORT
370
+ distance:
371
+ value: 3.32
372
+ units: km
373
+ - name: JAMESTOWN
374
+ distance:
375
+ value: 6.97
376
+ units: km
377
+ - name: LTLCOMPTON
378
+ distance:
379
+ value: 8.61
380
+ units: km
381
+ - country: US
382
+ region: RI
383
+ name: Pascoag
384
+ lat: '41.9520'
385
+ long: "-71.7042"
386
+ nearby_rate_centers:
387
+ - name: PASCOAG
388
+ distance:
389
+ value: 0.52
390
+ units: km
391
+ - name: WGLOCESTER
392
+ distance:
393
+ value: 8.25
394
+ units: km
395
+ - name: SCITUATE
396
+ distance:
397
+ value: 16.24
398
+ units: km
399
+ - country: US
400
+ region: RI
401
+ name: Pawtucket
402
+ lat: '41.8744'
403
+ long: "-71.3743"
404
+ nearby_rate_centers:
405
+ - name: PAWTUCKET
406
+ distance:
407
+ value: 0.85
408
+ units: km
409
+ - name: PROVIDENCE
410
+ distance:
411
+ value: 6.77
412
+ units: km
413
+ - name: CENTREDALE
414
+ distance:
415
+ value: 9.36
416
+ units: km
417
+ - country: US
418
+ region: RI
419
+ name: Providence
420
+ lat: '41.8230'
421
+ long: "-71.4187"
422
+ nearby_rate_centers:
423
+ - name: PROVIDENCE
424
+ distance:
425
+ value: 0.43
426
+ units: km
427
+ - name: CENTREDALE
428
+ distance:
429
+ value: 6.7
430
+ units: km
431
+ - name: PAWTUCKET
432
+ distance:
433
+ value: 6.85
434
+ units: km
435
+ - country: US
436
+ region: RI
437
+ name: Quonochontaug
438
+ lat: '41.3447'
439
+ long: "-71.7059"
440
+ nearby_rate_centers:
441
+ - name: WESTERLY
442
+ distance:
443
+ value: 11.16
444
+ units: km
445
+ - name: CAROLINA
446
+ distance:
447
+ value: 12.91
448
+ units: km
449
+ - name: HOPEVALLEY
450
+ distance:
451
+ value: 18.36
452
+ units: km
453
+ - country: US
454
+ region: RI
455
+ name: Valley Falls
456
+ lat: '41.9233'
457
+ long: "-71.3924"
458
+ nearby_rate_centers:
459
+ - name: PAWTUCKET
460
+ distance:
461
+ value: 5.04
462
+ units: km
463
+ - name: CUMBLND HL
464
+ distance:
465
+ value: 7.98
466
+ units: km
467
+ - name: CENTREDALE
468
+ distance:
469
+ value: 10.6
470
+ units: km
471
+ - country: US
472
+ region: RI
473
+ name: Warwick
474
+ lat: '41.7062'
475
+ long: "-71.4334"
476
+ nearby_rate_centers:
477
+ - name: WARWICK
478
+ distance:
479
+ value: 1.54
480
+ units: km
481
+ - name: GREENWICH
482
+ distance:
483
+ value: 5.02
484
+ units: km
485
+ - name: W WARWICK
486
+ distance:
487
+ value: 7.22
488
+ units: km
489
+ - country: US
490
+ region: RI
491
+ name: Watch Hill
492
+ lat: '41.3157'
493
+ long: "-71.8486"
494
+ nearby_rate_centers:
495
+ - name: WESTERLY
496
+ distance:
497
+ value: 6.95
498
+ units: km
499
+ - name: CAROLINA
500
+ distance:
501
+ value: 22.05
502
+ units: km
503
+ - name: HOPEVALLEY
504
+ distance:
505
+ value: 24.35
506
+ units: km
507
+ - country: US
508
+ region: RI
509
+ name: Weekapaug
510
+ lat: '41.3359'
511
+ long: "-71.7633"
512
+ nearby_rate_centers:
513
+ - name: WESTERLY
514
+ distance:
515
+ value: 7.36
516
+ units: km
517
+ - name: CAROLINA
518
+ distance:
519
+ value: 15.81
520
+ units: km
521
+ - name: HOPEVALLEY
522
+ distance:
523
+ value: 19.77
524
+ units: km
525
+ - country: US
526
+ region: RI
527
+ name: Woonsocket
528
+ lat: '42.0010'
529
+ long: "-71.4993"
530
+ nearby_rate_centers:
531
+ - name: WOONSOCKET
532
+ distance:
533
+ value: 1.17
534
+ units: km
535
+ - name: CUMBLND HL
536
+ distance:
537
+ value: 4.41
538
+ units: km
539
+ - name: CENTREDALE
540
+ distance:
541
+ value: 16.0
542
+ units: km
543
+ - country: US
544
+ region: RI
545
+ name: Wyoming
546
+ lat: '41.5143'
547
+ long: "-71.6903"
548
+ nearby_rate_centers:
549
+ - name: HOPEVALLEY
550
+ distance:
551
+ value: 1.98
552
+ units: km
553
+ - name: CAROLINA
554
+ distance:
555
+ value: 6.92
556
+ units: km
557
+ - name: NARRAGNSTT
558
+ distance:
559
+ value: 18.58
560
+ units: km