rate_center 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +7 -0
- data/README.md +14 -15
- data/data/cities/us/ak.yml +1077 -3221
- data/data/cities/us/al.yml +1790 -5358
- data/data/cities/us/ar.yml +1890 -5710
- data/data/cities/us/az.yml +1422 -4236
- data/data/cities/us/ca.yml +5539 -16077
- data/data/cities/us/co.yml +1865 -5323
- data/data/cities/us/ct.yml +576 -1714
- data/data/cities/us/dc.yml +1 -3
- data/data/cities/us/de.yml +237 -711
- data/data/cities/us/fl.yml +2904 -8670
- data/data/cities/us/ga.yml +2010 -6030
- data/data/cities/us/hi.yml +474 -1422
- data/data/cities/us/ia.yml +3093 -9583
- data/data/cities/us/id.yml +726 -2178
- data/data/cities/us/il.yml +4718 -13968
- data/data/cities/us/in.yml +2955 -8835
- data/data/cities/us/ks.yml +2339 -6937
- data/data/cities/us/ky.yml +1665 -4987
- data/data/cities/us/la.yml +1464 -4392
- data/data/cities/us/ma.yml +381 -1143
- data/data/cities/us/md.yml +2061 -5833
- data/data/cities/us/me.yml +200 -598
- data/data/cities/us/mi.yml +2294 -6954
- data/data/cities/us/mn.yml +2730 -8232
- data/data/cities/us/mo.yml +4049 -11597
- data/data/cities/us/ms.yml +1316 -3918
- data/data/cities/us/mt.yml +1485 -4575
- data/data/cities/us/nc.yml +2389 -7157
- data/data/cities/us/nd.yml +1215 -3683
- data/data/cities/us/ne.yml +1770 -5310
- data/data/cities/us/nh.yml +123 -369
- data/data/cities/us/nj.yml +1984 -5942
- data/data/cities/us/nm.yml +1557 -4671
- data/data/cities/us/nv.yml +511 -1437
- data/data/cities/us/ny.yml +3107 -9163
- data/data/cities/us/oh.yml +3802 -11404
- data/data/cities/us/ok.yml +2543 -7605
- data/data/cities/us/or.yml +1287 -3851
- data/data/cities/us/pa.yml +5564 -16534
- data/data/cities/us/pr.yml +843 -2529
- data/data/cities/us/ri.yml +93 -279
- data/data/cities/us/sc.yml +1474 -4482
- data/data/cities/us/sd.yml +1466 -4412
- data/data/cities/us/tn.yml +1647 -4845
- data/data/cities/us/tx.yml +7000 -19984
- data/data/cities/us/ut.yml +1144 -3304
- data/data/cities/us/va.yml +2071 -6175
- data/data/cities/us/vt.yml +318 -954
- data/data/cities/us/wa.yml +2088 -6138
- data/data/cities/us/wi.yml +2489 -7407
- data/data/cities/us/wv.yml +1355 -4029
- data/data/cities/us/wy.yml +612 -1836
- data/data/rate_centers/us/ak.yml +254 -762
- data/data/rate_centers/us/al.yml +517 -1145
- data/data/rate_centers/us/ar.yml +823 -1619
- data/data/rate_centers/us/az.yml +164 -484
- data/data/rate_centers/us/ca.yml +761 -2271
- data/data/rate_centers/us/co.yml +231 -685
- data/data/rate_centers/us/ct.yml +198 -388
- data/data/rate_centers/us/dc.yml +1 -3
- data/data/rate_centers/us/de.yml +30 -90
- data/data/rate_centers/us/fl.yml +302 -888
- data/data/rate_centers/us/ga.yml +386 -1134
- data/data/rate_centers/us/hi.yml +6 -18
- data/data/rate_centers/us/ia.yml +821 -2715
- data/data/rate_centers/us/id.yml +177 -545
- data/data/rate_centers/us/il.yml +1097 -3167
- data/data/rate_centers/us/in.yml +699 -1757
- data/data/rate_centers/us/ks.yml +617 -1851
- data/data/rate_centers/us/ky.yml +372 -1116
- data/data/rate_centers/us/la.yml +312 -880
- data/data/rate_centers/us/ma.yml +266 -798
- data/data/rate_centers/us/md.yml +185 -533
- data/data/rate_centers/us/me.yml +251 -753
- data/data/rate_centers/us/mi.yml +755 -2093
- data/data/rate_centers/us/mn.yml +667 -2021
- data/data/rate_centers/us/mo.yml +1266 -2924
- data/data/rate_centers/us/ms.yml +257 -743
- data/data/rate_centers/us/mt.yml +260 -934
- data/data/rate_centers/us/nc.yml +929 -1825
- data/data/rate_centers/us/nd.yml +314 -960
- data/data/rate_centers/us/ne.yml +487 -1421
- data/data/rate_centers/us/nh.yml +156 -450
- data/data/rate_centers/us/nj.yml +364 -782
- data/data/rate_centers/us/nm.yml +163 -489
- data/data/rate_centers/us/nv.yml +106 -318
- data/data/rate_centers/us/ny.yml +837 -2297
- data/data/rate_centers/us/oh.yml +1102 -2618
- data/data/rate_centers/us/ok.yml +536 -1600
- data/data/rate_centers/us/or.yml +275 -807
- data/data/rate_centers/us/pa.yml +1355 -2923
- data/data/rate_centers/us/pr.yml +86 -254
- data/data/rate_centers/us/ri.yml +25 -75
- data/data/rate_centers/us/sc.yml +296 -854
- data/data/rate_centers/us/sd.yml +278 -844
- data/data/rate_centers/us/tn.yml +403 -1119
- data/data/rate_centers/us/tx.yml +1619 -4497
- data/data/rate_centers/us/ut.yml +154 -454
- data/data/rate_centers/us/va.yml +619 -1361
- data/data/rate_centers/us/vt.yml +141 -423
- data/data/rate_centers/us/wa.yml +296 -888
- data/data/rate_centers/us/wi.yml +888 -2106
- data/data/rate_centers/us/wv.yml +229 -687
- data/data/rate_centers/us/wy.yml +95 -281
- data/lib/rate_center/city.rb +3 -4
- data/lib/rate_center/data_prep.rb +3 -9
- data/lib/rate_center/distance.rb +1 -1
- data/lib/rate_center/rate_center.rb +3 -4
- data/lib/rate_center/version.rb +1 -1
- metadata +2 -3
- data/lib/rate_center/vector.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47655c10d5b25077f791d31da5cbd6e23e5b0af1783fb6c591f68ad7a76166be
|
4
|
+
data.tar.gz: 370fb644416280b8c206f0846af07de0999472a9521035f197d434dc6c76d2b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 623a743234964c527f1d3be65774695c8a34b7655edb3317c07ad7ed22a07145cfc51077f1e1f1b08e0a4f1c916552c03299c9c436400477ed531f066b66b0d8
|
7
|
+
data.tar.gz: ede48996fea2a227ba4f8ffc04278ddb59820fea284509ce500fc643f9c18495650ee7db6cea1c6cbfdfcb8af0be5f0e9a3d8ca3085acdd73f19ba79ca0a2c12
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.1.3](https://github.com/somleng/rate_center/compare/v0.1.2...v0.1.3) (2024-10-07)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* Add cron to update data ([#12](https://github.com/somleng/rate_center/issues/12)) ([8f02fee](https://github.com/somleng/rate_center/commit/8f02feef2f766a2b7f7dc46ee4a2e5da01f0d444))
|
9
|
+
|
3
10
|
## [0.1.2](https://github.com/somleng/rate_center/compare/v0.1.1...v0.1.2) (2024-10-05)
|
4
11
|
|
5
12
|
|
data/README.md
CHANGED
@@ -40,8 +40,7 @@ rate_center.ilec_name # "VERIZON NEW YORK, INC."
|
|
40
40
|
rate_center.lat # "40.739362"
|
41
41
|
rate_center.long # "-73.991043"
|
42
42
|
rate_center.closest_city.name # "Manhattan"
|
43
|
-
rate_center.closest_city.
|
44
|
-
rate_center.closest_city.distance.units # km
|
43
|
+
rate_center.closest_city.distance_km # 5.33
|
45
44
|
```
|
46
45
|
|
47
46
|
### Working with Cities
|
@@ -59,22 +58,22 @@ city = RateCenter::City.find_by!(country: "US", region: "NY", name: "New York")
|
|
59
58
|
city.lat # "40.6943"
|
60
59
|
city.log # "-73.9249"
|
61
60
|
city.nearby_rate_centers.each do |rate_center|
|
62
|
-
puts "Rate Center: #{rate_center.name}, Distance: #{rate_center.
|
61
|
+
puts "Rate Center: #{rate_center.name}, Distance: #{rate_center.distance_km} km"
|
63
62
|
end
|
64
|
-
# Rate Center:
|
65
|
-
# Rate Center:
|
66
|
-
# Rate Center:
|
67
|
-
# Rate Center: NWYRCYZN10, Distance: 7.5 km
|
68
|
-
# Rate Center: NWYRCYZN13, Distance: 7.5 km
|
69
|
-
# Rate Center: NWYRCYZN09, Distance: 7.5 km
|
70
|
-
# Rate Center: NWYRCYZN08, Distance: 7.5 km
|
71
|
-
# Rate Center: NWYRCYZN07, Distance: 7.5 km
|
72
|
-
# Rate Center: NWYRCYZN06, Distance: 7.5 km
|
63
|
+
# Rate Center: NWYRCYZN01, Distance: 7.5 km
|
64
|
+
# Rate Center: NWYRCYZN03, Distance: 7.5 km
|
65
|
+
# Rate Center: NWYRCYZN04, Distance: 7.5 km
|
73
66
|
# Rate Center: NWYRCYZN05, Distance: 7.5 km
|
67
|
+
# Rate Center: NWYRCYZN06, Distance: 7.5 km
|
68
|
+
# Rate Center: NWYRCYZN07, Distance: 7.5 km
|
69
|
+
# Rate Center: NWYRCYZN08, Distance: 7.5 km
|
70
|
+
# Rate Center: NWYRCYZN09, Distance: 7.5 km
|
71
|
+
# Rate Center: NWYRCYZN10, Distance: 7.5 km
|
72
|
+
# Rate Center: NWYRCYZN11, Distance: 7.5 km
|
74
73
|
# Rate Center: NWYRCYZN12, Distance: 7.5 km
|
75
|
-
# Rate Center:
|
76
|
-
# Rate Center:
|
77
|
-
# Rate Center:
|
74
|
+
# Rate Center: NWYRCYZN13, Distance: 7.5 km
|
75
|
+
# Rate Center: NWYRCYZN14, Distance: 7.5 km
|
76
|
+
# Rate Center: NWYRCYZN15, Distance: 7.5 km
|
78
77
|
# Rate Center: NASSAUZN02, Distance: 18.96 km
|
79
78
|
# Rate Center: NASSAUZN03, Distance: 20.16 km
|
80
79
|
```
|