3PL pricing for mid-to-large items doesn’t fit a flat per-unit table. Costs depend on your products, your volume, your platforms, and your shipping geography. We give honest, custom quotes — typically within one business day.
FedEx Ground last-mile · 2026 rates
Estimate Your Last-Mile Shipping Cost
Enter your package details to see the FedEx published rate alongside your North Peak rate.
$
Enter a weight to see your FedEx-vs-North Peak comparison.
Estimate only. Base rates from the FedEx Service Guide (effective Jan 5, 2026); surcharges and Additional Handling / Oversize rules from the FedEx 2026 Surcharge & Fee Changes (effective Jan 5 & 12, 2026). Excludes taxes and any account-specific discounts. Totals include a fuel estimate (~22%; the FedEx Ground fuel surcharge changes weekly) and assume a standard delivery area. Zones are assigned from the FedEx Zone Locator chart for each origin warehouse (latest edition published by FedEx). Final charges are determined by FedEx at time of shipment.
Unlock your North Peak rate
Your North Peak rate is — lower than the FedEx published rate. Tell us where to send it and we’ll unlock both exact prices.
By submitting, you agree to be contacted by North Peak Logistics about your shipping. We never share your details.
(function(){
var RATES={"npl":{"1":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.34,"8":10.34},"2":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.34,"8":10.34},"3":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.34,"8":10.34},"4":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.34,"8":10.34},"5":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.34,"8":10.34},"6":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.34,"8":10.34},"7":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.34,"8":10.34},"8":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.34,"8":10.34},"9":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.34,"8":10.34},"10":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.34,"8":10.68},"11":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":10.66,"8":11.57},"12":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":11.09,"8":12.11},"13":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":11.76,"8":12.66},"14":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.34,"7":12.6,"8":13.77},"15":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":10.75,"7":13.0,"8":14.34},"16":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":11.1,"7":13.68,"8":15.05},"17":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":11.56,"7":14.38,"8":15.06},"18":{"2":10.34,"3":10.34,"4":10.34,"5":10.34,"6":12.17,"7":14.81,"8":16.24},"19":{"2":10.34,"3":10.34,"4":10.34,"5":10.7,"6":12.53,"7":15.26,"8":17.01},"20":{"2":10.34,"3":10.34,"4":10.34,"5":11.12,"6":12.96,"7":15.82,"8":17.62},"21":{"2":10.34,"3":10.34,"4":10.34,"5":11.14,"6":13.37,"7":16.26,"8":18.17},"22":{"2":10.34,"3":10.34,"4":10.34,"5":11.46,"6":13.9,"7":16.7,"8":18.79},"23":{"2":10.34,"3":10.34,"4":10.34,"5":11.78,"6":14.43,"7":17.27,"8":19.72},"24":{"2":10.34,"3":10.34,"4":10.41,"5":12.41,"6":15.12,"7":17.86,"8":20.84},"25":{"2":10.34,"3":10.34,"4":10.46,"5":12.65,"6":15.55,"7":18.84,"8":21.48},"26":{"2":10.34,"3":10.34,"4":10.9,"5":13.17,"6":16.12,"7":19.6,"8":22.37},"27":{"2":10.34,"3":10.34,"4":11.12,"5":13.26,"6":16.78,"7":19.97,"8":22.54},"28":{"2":10.34,"3":10.58,"4":11.63,"5":14.03,"6":17.6,"7":20.86,"8":23.62},"29":{"2":10.34,"3":10.78,"4":11.74,"5":14.14,"6":18.1,"7":21.34,"8":24.25},"30":{"2":10.34,"3":11.03,"4":12.19,"5":14.59,"6":18.39,"7":21.45,"8":25.02},"31":{"2":10.34,"3":11.29,"4":12.43,"5":14.78,"6":18.75,"7":22.03,"8":25.82},"32":{"2":10.34,"3":11.29,"4":12.44,"5":14.79,"6":18.75,"7":22.03,"8":26.11},"33":{"2":10.34,"3":11.46,"4":13.0,"5":15.47,"6":19.93,"7":22.76,"8":26.81},"34":{"2":10.34,"3":11.71,"4":13.41,"5":16.02,"6":19.93,"7":23.45,"8":28.1},"35":{"2":10.34,"3":12.33,"4":13.85,"5":16.41,"6":20.28,"7":24.05,"8":28.3},"36":{"2":10.34,"3":12.34,"4":13.96,"5":16.81,"6":21.12,"7":24.87,"8":29.4},"37":{"2":10.34,"3":12.5,"4":14.1,"5":17.18,"6":21.22,"7":25.68,"8":29.69},"38":{"2":10.49,"3":12.69,"4":14.55,"5":17.6,"6":21.7,"7":25.77,"8":30.25},"39":{"2":10.85,"3":13.19,"4":15.17,"5":18.13,"6":22.68,"7":26.78,"8":30.87},"40":{"2":10.85,"3":13.24,"4":15.18,"5":18.14,"6":22.72,"7":26.79,"8":30.88},"41":{"2":11.1,"3":13.81,"4":15.62,"5":18.79,"6":23.66,"7":27.62,"8":32.04},"42":{"2":11.1,"3":13.86,"4":16.23,"5":18.85,"6":23.77,"7":28.09,"8":32.2},"43":{"2":11.31,"3":14.06,"4":16.25,"5":19.81,"6":25.06,"7":29.11,"8":33.08},"44":{"2":11.47,"3":14.27,"4":16.68,"5":20.17,"6":25.2,"7":30.02,"8":33.43},"45":{"2":11.48,"3":14.27,"4":16.68,"5":20.17,"6":25.21,"7":30.59,"8":33.66},"46":{"2":11.78,"3":14.42,"4":17.21,"5":20.56,"6":25.88,"7":30.92,"8":34.55},"47":{"2":11.79,"3":14.74,"4":17.49,"5":20.7,"6":26.23,"7":31.53,"8":35.12},"48":{"2":11.79,"3":14.75,"4":17.68,"5":21.45,"6":26.61,"7":31.82,"8":35.67},"49":{"2":11.8,"3":14.75,"4":17.69,"5":21.45,"6":26.81,"7":32.45,"8":35.88},"50":{"2":11.8,"3":14.76,"4":17.7,"5":21.47,"6":27.05,"7":32.73,"8":36.38},"51":{"2":11.88,"3":14.87,"4":17.87,"5":21.67,"6":27.51,"7":33.3,"8":37.39},"52":{"2":11.89,"3":14.87,"4":17.87,"5":21.68,"6":27.52,"7":33.31,"8":37.4},"53":{"2":11.89,"3":14.87,"4":17.88,"5":21.9,"6":27.52,"7":33.31,"8":37.76},"54":{"2":11.9,"3":14.88,"4":17.91,"5":21.94,"6":27.53,"7":33.32,"8":37.77},"55":{"2":11.9,"3":14.88,"4":17.91,"5":21.94,"6":27.54,"7":33.32,"8":37.78},"56":{"2":11.91,"3":14.89,"4":17.92,"5":21.95,"6":27.54,"7":33.33,"8":38.25},"57":{"2":12.12,"3":14.97,"4":17.93,"5":22.6,"6":27.55,"7":33.34,"8":38.64},"58":{"2":12.13,"3":14.97,"4":17.94,"5":22.61,"6":27.56,"7":33.34,"8":38.98},"59":{"2":12.14,"3":14.98,"4":18.05,"5":22.63,"6":27.75,"7":33.34,"8":39.63},"60":{"2":12.47,"3":15.56,"4":18.37,"5":23.42,"6":28.27,"7":33.46,"8":39.87},"61":{"2":12.47,"3":15.61,"4":18.55,"5":23.48,"6":28.27,"7":33.47,"8":39.87},"62":{"2":12.99,"3":16.72,"4":18.85,"5":24.14,"6":28.7,"7":33.98,"8":40.36},"63":{"2":13.0,"3":16.72,"4":19.03,"5":24.16,"6":28.9,"7":34.26,"8":40.6},"64":{"2":13.34,"3":16.73,"4":19.34,"5":24.16,"6":29.11,"7":34.26,"8":40.85},"65":{"2":13.48,"3":17.17,"4":19.34,"5":24.17,"6":29.36,"7":34.34,"8":40.91},"66":{"2":13.55,"3":17.34,"4":19.35,"5":24.17,"6":29.38,"7":34.46,"8":41.09},"67":{"2":13.55,"3":17.35,"4":19.35,"5":24.21,"6":29.61,"7":34.62,"8":41.48},"68":{"2":13.72,"3":17.67,"4":20.53,"5":24.76,"6":30.05,"7":35.15,"8":41.48},"69":{"2":14.0,"3":17.84,"4":20.73,"5":24.94,"6":30.2,"7":35.15,"8":41.71},"70":{"2":14.06,"3":18.09,"4":21.18,"5":26.14,"6":30.81,"7":35.15,"8":42.06},"71":{"2":14.07,"3":18.1,"4":21.51,"5":26.14,"6":31.01,"7":35.73,"8":42.08},"72":{"2":14.47,"3":18.1,"4":21.96,"5":26.15,"6":31.53,"7":37.25,"8":42.14},"73":{"2":14.56,"3":18.27,"4":21.96,"5":26.54,"6":31.86,"7":37.31,"8":42.14},"74":{"2":14.95,"3":18.27,"4":21.97,"5":26.55,"6":32.36,"7":37.32,"8":42.15},"75":{"2":15.51,"3":18.29,"4":21.97,"5":26.76,"6":32.36,"7":37.7,"8":42.16},"76":{"2":16.7,"3":19.31,"4":22.11,"5":27.16,"6":33.08,"7":38.31,"8":42.54},"77":{"2":17.35,"3":19.59,"4":22.37,"5":27.29,"6":33.26,"7":39.4,"8":42.55},"78":{"2":17.37,"3":20.33,"4":23.02,"5":27.58,"6":33.47,"7":39.69,"8":42.56},"79":{"2":18.15,"3":21.17,"4":23.6,"5":28.02,"6":34.17,"7":40.31,"8":43.25},"80":{"2":18.65,"3":21.58,"4":23.7,"5":28.67,"6":34.74,"7":40.87,"8":43.59},"81":{"2":19.11,"3":21.75,"4":24.27,"5":28.87,"6":35.19,"7":41.11,"8":43.73},"82":{"2":19.73,"3":22.28,"4":25.38,"5":29.61,"6":35.28,"7":42.17,"8":43.74},"83":{"2":19.73,"3":22.28,"4":25.38,"5":29.61,"6":35.39,"7":42.18,"8":43.74},"84":{"2":20.51,"3":23.17,"4":26.12,"5":29.9,"6":36.26,"7":42.69,"8":44.07},"85":{"2":21.06,"3":23.18,"4":26.14,"5":30.38,"6":36.48,"7":43.15,"8":44.55},"86":{"2":21.83,"3":24.46,"4":27.16,"5":30.95,"6":37.26,"7":44.36,"8":45.92},"87":{"2":22.28,"3":24.47,"4":27.16,"5":30.96,"6":37.75,"7":44.4,"8":45.99},"88":{"2":23.2,"3":25.02,"4":28.02,"5":31.96,"6":37.89,"7":44.44,"8":46.49},"89":{"2":24.25,"3":25.71,"4":28.57,"5":32.06,"6":38.71,"7":44.9,"8":47.47},"90":{"2":25.72,"3":26.83,"4":29.81,"5":33.0,"6":39.26,"7":45.94,"8":48.41},"91":{"2":25.73,"3":26.83,"4":29.81,"5":33.0,"6":39.27,"7":45.95,"8":48.41},"92":{"2":26.31,"3":27.09,"4":29.97,"5":33.33,"6":39.74,"7":45.95,"8":48.56},"93":{"2":26.64,"3":27.34,"4":30.54,"5":33.33,"6":39.75,"7":45.95,"8":48.56},"94":{"2":26.78,"3":28.06,"4":30.68,"5":33.76,"6":40.59,"7":45.97,"8":49.53},"95":{"2":27.14,"3":28.31,"4":30.89,"5":34.22,"6":40.71,"7":46.12,"8":50.06},"96":{"2":28.02,"3":28.5,"4":32.01,"5":34.59,"6":40.72,"7":46.13,"8":50.55},"97":{"2":28.93,"3":29.62,"4":32.48,"5":35.15,"6":41.59,"7":46.79,"8":51.55},"98":{"2":29.32,"3":29.81,"4":32.48,"5":35.56,"6":42.06,"7":46.8,"8":51.55},"99":{"2":29.72,"3":29.99,"4":33.08,"5":36.01,"6":42.16,"7":47.27,"8":52.07},"100":{"2":30.21,"3":30.49,"4":33.41,"5":36.21,"6":42.62,"7":47.3,"8":52.11},"101":{"2":30.43,"3":30.79,"4":33.42,"5":36.55,"6":43.02,"7":47.74,"8":52.59},"102":{"2":30.72,"3":30.79,"4":33.73,"5":36.55,"6":43.02,"7":47.75,"8":52.6},"103":{"2":31.12,"3":31.55,"4":34.43,"5":36.77,"6":43.14,"7":47.75,"8":52.6},"104":{"2":31.13,"3":31.56,"4":34.51,"5":36.81,"6":43.14,"7":47.75,"8":52.61},"105":{"2":32.24,"3":32.49,"4":35.24,"5":37.93,"6":44.21,"7":48.87,"8":53.9},"106":{"2":32.46,"3":32.5,"4":35.24,"5":37.93,"6":44.21,"7":48.88,"8":53.9},"107":{"2":32.63,"3":32.95,"4":35.72,"5":38.34,"6":44.22,"7":49.24,"8":54.32},"108":{"2":33.1,"3":33.31,"4":36.06,"5":38.34,"6":44.6,"7":49.25,"8":54.33},"109":{"2":34.1,"3":34.11,"4":36.5,"5":39.09,"6":45.0,"7":50.13,"8":55.32},"110":{"2":34.69,"3":34.93,"4":37.28,"5":39.83,"6":46.24,"7":51.07,"8":56.34},"111":{"2":34.7,"3":34.98,"4":38.11,"5":40.22,"6":46.25,"7":51.43,"8":57.02},"112":{"2":35.1,"3":35.7,"4":38.11,"5":40.22,"6":46.61,"7":51.44,"8":57.02},"113":{"2":35.11,"3":35.7,"4":38.52,"5":40.6,"6":46.62,"7":51.44,"8":57.51},"114":{"2":35.48,"3":36.47,"4":39.33,"5":41.39,"6":47.85,"7":52.72,"8":58.43},"115":{"2":36.55,"3":37.02,"4":39.34,"5":41.89,"6":47.86,"7":53.23,"8":58.45},"116":{"2":36.56,"3":37.02,"4":39.83,"5":41.89,"6":48.56,"7":53.89,"8":59.36},"117":{"2":36.59,"3":37.38,"4":40.2,"5":42.45,"6":48.56,"7":53.9,"8":59.74},"118":{"2":36.98,"3":37.82,"4":40.24,"5":42.58,"6":48.92,"7":53.9,"8":60.77},"119":{"2":38.08,"3":38.59,"4":41.44,"5":43.23,"6":48.92,"7":54.32,"8":60.77},"120":{"2":39.12,"3":39.15,"4":41.5,"5":43.52,"6":49.78,"7":55.03,"8":60.78},"121":{"2":39.12,"3":39.16,"4":41.5,"5":43.53,"6":50.1,"7":55.04,"8":60.78},"122":{"2":39.12,"3":39.91,"4":41.91,"5":43.92,"6":50.49,"7":55.91,"8":61.85},"123":{"2":39.48,"3":39.94,"4":43.16,"5":45.12,"6":50.89,"7":56.94,"8":62.69},"124":{"2":39.48,"3":40.34,"4":43.62,"5":45.13,"6":51.22,"7":56.94,"8":62.69},"125":{"2":39.86,"3":40.35,"4":43.62,"5":45.13,"6":51.23,"7":56.94,"8":62.69},"126":{"2":40.66,"3":40.74,"4":44.06,"5":45.13,"6":51.52,"7":56.95,"8":64.91},"127":{"2":40.66,"3":41.45,"4":44.92,"5":46.16,"6":52.7,"7":57.98,"8":64.92},"128":{"2":41.04,"3":41.45,"4":44.93,"5":46.17,"6":52.7,"7":57.99,"8":65.26},"129":{"2":41.82,"3":41.98,"4":44.95,"5":46.48,"6":52.71,"7":58.0,"8":65.89},"130":{"2":41.98,"3":41.99,"4":45.35,"5":46.48,"6":53.09,"7":58.74,"8":67.4},"131":{"2":42.22,"3":42.65,"4":46.22,"5":47.24,"6":53.87,"7":59.3,"8":67.71},"132":{"2":42.66,"3":42.67,"4":46.22,"5":47.56,"6":53.87,"7":59.3,"8":67.72},"133":{"2":43.02,"3":43.14,"4":46.22,"5":47.57,"6":54.15,"7":59.31,"8":67.72},"134":{"2":43.83,"3":43.88,"4":47.13,"5":48.42,"6":55.09,"7":60.28,"8":67.73},"135":{"2":44.16,"3":44.75,"4":47.99,"5":49.27,"6":55.77,"7":60.6,"8":68.06},"136":{"2":44.49,"3":44.75,"4":48.31,"5":49.71,"6":55.77,"7":61.54,"8":68.53},"137":{"2":44.5,"3":44.86,"4":49.59,"5":50.07,"6":55.78,"7":61.54,"8":68.53},"138":{"2":45.32,"3":46.0,"4":49.83,"5":50.48,"6":56.93,"7":62.06,"8":70.41},"139":{"2":46.16,"3":46.17,"4":49.85,"5":50.49,"6":56.93,"7":63.23,"8":70.42},"140":{"2":46.55,"3":46.91,"4":50.34,"5":51.28,"6":57.54,"7":63.23,"8":70.42},"141":{"2":46.55,"3":46.91,"4":50.78,"5":51.29,"6":57.55,"7":63.23,"8":71.09},"142":{"2":47.14,"3":47.15,"4":51.23,"5":52.11,"6":58.4,"7":63.51,"8":71.1},"143":{"2":47.15,"3":47.15,"4":51.24,"5":52.11,"6":58.4,"7":63.52,"8":71.1},"144":{"2":48.48,"3":49.13,"4":52.73,"5":53.75,"6":59.96,"7":65.77,"8":73.58},"145":{"2":48.48,"3":49.63,"4":52.73,"5":53.75,"6":60.86,"7":65.92,"8":73.59},"146":{"2":48.49,"3":49.63,"4":52.74,"5":53.75,"6":60.86,"7":65.92,"8":73.59},"147":{"2":49.08,"3":50.12,"4":53.67,"5":54.3,"6":61.3,"7":65.93,"8":74.28},"148":{"2":49.09,"3":50.42,"4":53.73,"5":54.3,"6":61.3,"7":65.93,"8":74.28},"149":{"2":49.09,"3":50.43,"4":54.47,"5":55.15,"6":61.51,"7":66.56,"8":74.98},"150":{"2":49.09,"3":50.43,"4":54.48,"5":55.94,"6":61.51,"7":66.56,"8":74.99}},"fedex":{"1":{"2":11.99,"3":12.21,"4":13.26,"5":14.0,"6":14.47,"7":14.75,"8":15.01},"2":{"2":12.78,"3":14.09,"4":15.33,"5":15.66,"6":16.34,"7":17.08,"8":17.37},"3":{"2":13.3,"3":14.84,"4":15.99,"5":16.81,"6":17.49,"7":18.21,"8":19.11},"4":{"2":13.69,"3":14.93,"4":16.65,"5":17.73,"6":18.22,"7":19.56,"8":20.48},"5":{"2":14.06,"3":15.62,"4":17.06,"5":18.53,"6":19.26,"7":20.47,"8":21.69},"6":{"2":14.17,"3":15.67,"4":17.23,"5":18.6,"6":19.29,"7":20.48,"8":21.7},"7":{"2":14.97,"3":16.03,"4":17.68,"5":19.19,"6":19.63,"7":21.03,"8":22.51},"8":{"2":15.4,"3":16.61,"4":18.29,"5":19.74,"6":20.42,"7":21.88,"8":23.5},"9":{"2":15.64,"3":16.84,"4":18.38,"5":19.91,"6":20.86,"7":22.79,"8":24.75},"10":{"2":15.85,"3":17.02,"4":18.56,"5":20.46,"6":21.1,"7":23.87,"8":26.38},"11":{"2":16.92,"3":17.6,"4":19.35,"5":20.99,"6":22.27,"7":26.31,"8":28.58},"12":{"2":17.2,"3":18.35,"4":19.54,"5":21.29,"6":23.05,"7":27.37,"8":29.92},"13":{"2":17.21,"3":18.43,"4":19.77,"5":21.69,"6":23.76,"7":29.04,"8":31.27},"14":{"2":17.92,"3":18.93,"4":19.97,"5":22.23,"6":25.16,"7":31.11,"8":34.01},"15":{"2":17.93,"3":19.35,"4":20.25,"5":23.01,"6":26.54,"7":32.08,"8":35.4},"16":{"2":18.39,"3":19.91,"4":20.62,"5":23.41,"6":27.39,"7":33.78,"8":37.16},"17":{"2":18.52,"3":20.32,"4":20.84,"5":24.07,"6":28.56,"7":35.51,"8":37.17},"18":{"2":18.71,"3":20.59,"4":21.07,"5":25.23,"6":30.05,"7":36.57,"8":40.08},"19":{"2":19.22,"3":21.59,"4":22.21,"5":26.42,"6":30.94,"7":37.68,"8":42.0},"20":{"2":19.36,"3":21.77,"4":22.32,"5":27.47,"6":31.99,"7":39.07,"8":43.52},"21":{"2":19.88,"3":22.41,"4":23.29,"5":27.52,"6":32.99,"7":40.16,"8":44.86},"22":{"2":19.93,"3":22.63,"4":23.92,"5":28.28,"6":34.34,"7":41.25,"8":46.39},"23":{"2":20.2,"3":23.07,"4":24.68,"5":29.09,"6":35.63,"7":42.65,"8":48.68},"24":{"2":20.75,"3":24.0,"4":25.71,"5":30.64,"6":37.33,"7":44.08,"8":51.47},"25":{"2":20.82,"3":24.09,"4":25.83,"5":31.23,"6":38.41,"7":46.51,"8":53.05},"26":{"2":21.62,"3":24.91,"4":26.91,"5":32.5,"6":39.81,"7":48.41,"8":55.25},"27":{"2":22.22,"3":25.51,"4":27.45,"5":32.73,"6":41.42,"7":49.31,"8":55.65},"28":{"2":22.74,"3":26.12,"4":28.72,"5":34.65,"6":43.44,"7":51.51,"8":58.32},"29":{"2":22.79,"3":26.62,"4":28.98,"5":34.92,"6":44.68,"7":52.69,"8":59.88},"30":{"2":23.02,"3":27.25,"4":30.08,"5":36.03,"6":45.4,"7":52.96,"8":61.78},"31":{"2":24.01,"3":27.86,"4":30.69,"5":36.49,"6":46.28,"7":54.4,"8":63.76},"32":{"2":24.02,"3":27.87,"4":30.7,"5":36.5,"6":46.29,"7":54.41,"8":64.46},"33":{"2":24.16,"3":28.28,"4":32.08,"5":38.21,"6":49.21,"7":56.21,"8":66.2},"34":{"2":24.3,"3":28.92,"4":33.1,"5":39.55,"6":49.22,"7":57.89,"8":69.37},"35":{"2":24.76,"3":30.45,"4":34.19,"5":40.5,"6":50.06,"7":59.38,"8":69.87},"36":{"2":25.12,"3":30.46,"4":34.46,"5":41.5,"6":52.16,"7":61.4,"8":72.61},"37":{"2":25.5,"3":30.87,"4":34.82,"5":42.42,"6":52.39,"7":63.39,"8":73.32},"38":{"2":25.9,"3":31.34,"4":35.93,"5":43.44,"6":53.57,"7":63.63,"8":74.69},"39":{"2":26.77,"3":32.56,"4":37.47,"5":44.78,"6":56.01,"7":66.14,"8":76.22},"40":{"2":26.79,"3":32.69,"4":37.48,"5":44.8,"6":56.08,"7":66.15,"8":76.24},"41":{"2":27.39,"3":34.1,"4":38.57,"5":46.39,"6":58.42,"7":68.19,"8":79.12},"42":{"2":27.4,"3":34.22,"4":40.07,"5":46.54,"6":58.68,"7":69.35,"8":79.52},"43":{"2":27.93,"3":34.71,"4":40.13,"5":48.91,"6":61.87,"7":71.87,"8":81.68},"44":{"2":28.3,"3":35.23,"4":41.17,"5":49.79,"6":62.22,"7":74.1,"8":82.53},"45":{"2":28.36,"3":35.24,"4":41.18,"5":49.8,"6":62.25,"7":75.54,"8":83.11},"46":{"2":29.09,"3":35.61,"4":42.48,"5":50.75,"6":63.89,"7":76.36,"8":85.32},"47":{"2":29.1,"3":36.41,"4":43.17,"5":51.1,"6":64.76,"7":77.84,"8":86.7},"48":{"2":29.12,"3":36.42,"4":43.67,"5":52.95,"6":65.72,"7":78.56,"8":88.07},"49":{"2":29.13,"3":36.43,"4":43.68,"5":52.96,"6":66.21,"7":80.13,"8":88.59},"50":{"2":29.14,"3":36.44,"4":43.7,"5":53.0,"6":66.78,"7":80.83,"8":89.83},"51":{"2":29.34,"3":36.7,"4":44.12,"5":53.51,"6":67.94,"7":82.22,"8":92.34},"52":{"2":29.35,"3":36.71,"4":44.14,"5":53.54,"6":67.95,"7":82.24,"8":92.35},"53":{"2":29.36,"3":36.72,"4":44.16,"5":54.07,"6":67.96,"7":82.25,"8":93.25},"54":{"2":29.37,"3":36.73,"4":44.22,"5":54.17,"6":67.98,"7":82.26,"8":93.26},"55":{"2":29.38,"3":36.74,"4":44.23,"5":54.18,"6":67.99,"7":82.27,"8":93.28},"56":{"2":29.4,"3":36.76,"4":44.24,"5":54.19,"6":68.01,"7":82.29,"8":94.44},"57":{"2":29.93,"3":36.95,"4":44.26,"5":55.81,"6":68.03,"7":82.32,"8":95.4},"58":{"2":29.95,"3":36.96,"4":44.28,"5":55.83,"6":68.04,"7":82.33,"8":96.24},"59":{"2":29.97,"3":36.99,"4":44.58,"5":55.86,"6":68.52,"7":82.34,"8":97.84},"60":{"2":30.79,"3":38.43,"4":45.35,"5":57.83,"6":69.79,"7":82.63,"8":98.44},"61":{"2":30.8,"3":38.53,"4":45.79,"5":57.97,"6":69.8,"7":82.64,"8":98.45},"62":{"2":32.07,"3":41.28,"4":46.53,"5":59.6,"6":70.87,"7":83.91,"8":99.65},"63":{"2":32.08,"3":41.29,"4":46.98,"5":59.64,"6":71.36,"7":84.6,"8":100.25},"64":{"2":32.93,"3":41.31,"4":47.75,"5":59.65,"6":71.87,"7":84.61,"8":100.87},"65":{"2":33.29,"3":42.41,"4":47.76,"5":59.66,"6":72.49,"7":84.81,"8":101.03},"66":{"2":33.46,"3":42.82,"4":47.77,"5":59.67,"6":72.55,"7":85.08,"8":101.46},"67":{"2":33.47,"3":42.85,"4":47.78,"5":59.78,"6":73.11,"7":85.49,"8":102.42},"68":{"2":33.86,"3":43.63,"4":50.68,"5":61.14,"6":74.19,"7":86.79,"8":102.43},"69":{"2":34.56,"3":44.05,"4":51.18,"5":61.58,"6":74.58,"7":86.8,"8":102.97},"70":{"2":34.72,"3":44.67,"4":52.29,"5":64.54,"6":76.07,"7":86.81,"8":103.85},"71":{"2":34.74,"3":44.68,"4":53.1,"5":64.55,"6":76.57,"7":88.22,"8":103.88},"72":{"2":35.73,"3":44.69,"4":54.22,"5":64.58,"6":77.84,"7":91.98,"8":104.04},"73":{"2":35.96,"3":45.11,"4":54.23,"5":65.53,"6":78.67,"7":92.14,"8":104.05},"74":{"2":36.91,"3":45.12,"4":54.24,"5":65.55,"6":79.88,"7":92.15,"8":104.07},"75":{"2":38.28,"3":45.15,"4":54.25,"5":66.06,"6":79.89,"7":93.08,"8":104.08},"76":{"2":41.23,"3":47.68,"4":54.6,"5":67.07,"6":81.66,"7":94.59,"8":105.05},"77":{"2":42.85,"3":48.37,"4":55.23,"5":67.37,"6":82.13,"7":97.29,"8":105.06},"78":{"2":42.89,"3":50.19,"4":56.85,"5":68.09,"6":82.65,"7":98.01,"8":105.08},"79":{"2":44.82,"3":52.27,"4":58.27,"5":69.17,"6":84.38,"7":99.53,"8":106.79},"80":{"2":46.04,"3":53.28,"4":58.52,"5":70.81,"6":85.78,"7":100.9,"8":107.62},"81":{"2":47.17,"3":53.7,"4":59.94,"5":71.29,"6":86.89,"7":101.51,"8":107.98},"82":{"2":48.7,"3":55.01,"4":62.66,"5":73.11,"6":87.12,"7":104.14,"8":107.99},"83":{"2":48.71,"3":55.02,"4":62.67,"5":73.12,"6":87.38,"7":104.15,"8":108.01},"84":{"2":50.65,"3":57.21,"4":64.49,"5":73.83,"6":89.53,"7":105.39,"8":108.83},"85":{"2":52.0,"3":57.22,"4":64.53,"5":75.02,"6":90.07,"7":106.53,"8":110.01},"86":{"2":53.9,"3":60.39,"4":67.06,"5":76.43,"6":92.0,"7":109.53,"8":113.38},"87":{"2":55.01,"3":60.42,"4":67.07,"5":76.44,"6":93.21,"7":109.62,"8":113.56},"88":{"2":57.29,"3":61.77,"4":69.18,"5":78.91,"6":93.55,"7":109.74,"8":114.81},"89":{"2":59.86,"3":63.49,"4":70.53,"5":79.16,"6":95.58,"7":110.86,"8":117.21},"90":{"2":63.52,"3":66.24,"4":73.59,"5":81.48,"6":96.94,"7":113.43,"8":119.53},"91":{"2":63.53,"3":66.25,"4":73.6,"5":81.49,"6":96.95,"7":113.44,"8":119.54},"92":{"2":64.95,"3":66.88,"4":73.99,"5":82.28,"6":98.13,"7":113.46,"8":119.89},"93":{"2":65.78,"3":67.51,"4":75.39,"5":82.29,"6":98.15,"7":113.47,"8":119.9},"94":{"2":66.12,"3":69.29,"4":75.76,"5":83.35,"6":100.22,"7":113.5,"8":122.28},"95":{"2":67.02,"3":69.92,"4":76.27,"5":84.48,"6":100.52,"7":113.89,"8":123.6},"96":{"2":69.17,"3":70.37,"4":79.05,"5":85.41,"6":100.53,"7":113.9,"8":124.82},"97":{"2":71.43,"3":73.13,"4":80.2,"5":86.79,"6":102.69,"7":115.53,"8":127.28},"98":{"2":72.39,"3":73.61,"4":80.21,"5":87.8,"6":103.85,"7":115.55,"8":127.29},"99":{"2":73.38,"3":74.04,"4":81.69,"5":88.91,"6":104.08,"7":116.7,"8":128.58},"100":{"2":74.61,"3":75.29,"4":82.48,"5":89.39,"6":105.22,"7":116.79,"8":128.66},"101":{"2":75.13,"3":76.02,"4":82.5,"5":90.24,"6":106.22,"7":117.89,"8":129.85},"102":{"2":75.85,"3":76.03,"4":83.28,"5":90.25,"6":106.23,"7":117.9,"8":129.86},"103":{"2":76.85,"3":77.92,"4":85.0,"5":90.78,"6":106.5,"7":117.91,"8":129.87},"104":{"2":76.86,"3":77.93,"4":85.21,"5":90.88,"6":106.51,"7":117.92,"8":129.88},"105":{"2":79.61,"3":80.23,"4":87.02,"5":93.64,"6":109.15,"7":120.66,"8":133.08},"106":{"2":80.16,"3":80.24,"4":87.03,"5":93.65,"6":109.16,"7":120.68,"8":133.09},"107":{"2":80.58,"3":81.36,"4":88.19,"5":94.66,"6":109.17,"7":121.58,"8":134.13},"108":{"2":81.73,"3":82.25,"4":89.04,"5":94.67,"6":110.14,"7":121.59,"8":134.15},"109":{"2":84.2,"3":84.22,"4":90.14,"5":96.5,"6":111.1,"7":123.77,"8":136.59},"110":{"2":85.65,"3":86.24,"4":92.05,"5":98.36,"6":114.18,"7":126.08,"8":139.12},"111":{"2":85.66,"3":86.37,"4":94.08,"5":99.31,"6":114.19,"7":126.98,"8":140.77},"112":{"2":86.67,"3":88.15,"4":94.09,"5":99.32,"6":115.09,"7":126.99,"8":140.78},"113":{"2":86.68,"3":88.16,"4":95.12,"5":100.24,"6":115.11,"7":127.0,"8":142.0},"114":{"2":87.59,"3":90.05,"4":97.11,"5":102.19,"6":118.16,"7":130.18,"8":144.26},"115":{"2":90.25,"3":91.4,"4":97.14,"5":103.43,"6":118.18,"7":131.42,"8":144.32},"116":{"2":90.26,"3":91.41,"4":98.33,"5":103.45,"6":119.91,"7":133.07,"8":146.56},"117":{"2":90.35,"3":92.29,"4":99.27,"5":104.83,"6":119.92,"7":133.08,"8":147.51},"118":{"2":91.32,"3":93.38,"4":99.36,"5":105.14,"6":120.8,"7":133.09,"8":150.04},"119":{"2":94.03,"3":95.29,"4":102.31,"5":106.73,"6":120.81,"7":134.13,"8":150.05},"120":{"2":96.59,"3":96.66,"4":102.46,"5":107.46,"6":122.92,"7":135.89,"8":150.06},"121":{"2":96.6,"3":96.68,"4":102.47,"5":107.48,"6":123.7,"7":135.91,"8":150.07},"122":{"2":96.61,"3":98.54,"4":103.48,"5":108.45,"6":124.67,"7":138.05,"8":152.7},"123":{"2":97.48,"3":98.63,"4":106.58,"5":111.41,"6":125.64,"7":140.59,"8":154.79},"124":{"2":97.49,"3":99.61,"4":107.7,"5":111.42,"6":126.47,"7":140.6,"8":154.8},"125":{"2":98.42,"3":99.62,"4":107.71,"5":111.43,"6":126.48,"7":140.61,"8":154.81},"126":{"2":100.39,"3":100.59,"4":108.81,"5":111.44,"6":127.23,"7":140.62,"8":160.27},"127":{"2":100.4,"3":102.33,"4":110.92,"5":113.97,"6":130.13,"7":143.16,"8":160.28},"128":{"2":101.34,"3":102.34,"4":110.93,"5":113.99,"6":130.14,"7":143.17,"8":161.14},"129":{"2":103.27,"3":103.66,"4":110.97,"5":114.77,"6":130.15,"7":143.19,"8":162.69},"130":{"2":103.67,"3":103.69,"4":111.97,"5":114.78,"6":131.09,"7":145.05,"8":166.42},"131":{"2":104.24,"3":105.31,"4":114.1,"5":116.65,"6":133.02,"7":146.42,"8":167.18},"132":{"2":105.34,"3":105.35,"4":114.11,"5":117.43,"6":133.03,"7":146.43,"8":167.19},"133":{"2":106.23,"3":106.52,"4":114.12,"5":117.44,"6":133.72,"7":146.44,"8":167.2},"134":{"2":108.22,"3":108.34,"4":116.37,"5":119.55,"6":136.03,"7":148.84,"8":167.22},"135":{"2":109.04,"3":110.48,"4":118.49,"5":121.67,"6":137.7,"7":149.63,"8":168.04},"136":{"2":109.84,"3":110.49,"4":119.29,"5":122.73,"6":137.72,"7":151.95,"8":169.19},"137":{"2":109.86,"3":110.76,"4":122.45,"5":123.63,"6":137.73,"7":151.96,"8":169.2},"138":{"2":111.9,"3":113.58,"4":123.04,"5":124.65,"6":140.55,"7":153.25,"8":173.84},"139":{"2":113.98,"3":113.99,"4":123.08,"5":124.67,"6":140.57,"7":156.1,"8":173.88},"140":{"2":114.93,"3":115.82,"4":124.29,"5":126.62,"6":142.07,"7":156.11,"8":173.89},"141":{"2":114.94,"3":115.83,"4":125.38,"5":126.64,"6":142.08,"7":156.12,"8":175.54},"142":{"2":116.41,"3":116.42,"4":126.49,"5":128.66,"6":144.2,"7":156.83,"8":175.55},"143":{"2":116.42,"3":116.43,"4":126.5,"5":128.67,"6":144.21,"7":156.84,"8":175.56},"144":{"2":119.71,"3":121.32,"4":130.2,"5":132.7,"6":148.05,"7":162.41,"8":181.69},"145":{"2":119.72,"3":122.54,"4":130.21,"5":132.71,"6":150.26,"7":162.77,"8":181.7},"146":{"2":119.73,"3":122.55,"4":130.22,"5":132.72,"6":150.27,"7":162.78,"8":181.71},"147":{"2":121.18,"3":123.76,"4":132.51,"5":134.06,"6":151.35,"7":162.79,"8":183.39},"148":{"2":121.19,"3":124.49,"4":132.67,"5":134.07,"6":151.36,"7":162.8,"8":183.4},"149":{"2":121.2,"3":124.5,"4":134.49,"5":136.17,"6":151.86,"7":164.34,"8":185.14},"150":{"2":121.21,"3":124.51,"4":134.51,"5":138.11,"6":151.87,"7":164.36,"8":185.15}}};
var GEO={"zip3":{"005":[40.815,-73.045],"010":[42.265,-72.572],"011":[42.124,-72.571],"012":[42.347,-73.227],"013":[42.594,-72.576],"014":[42.584,-71.767],"015":[42.215,-71.828],"016":[42.279,-71.828],"017":[42.351,-71.454],"018":[42.626,-71.199],"019":[42.603,-70.895],"020":[42.152,-71.044],"021":[42.334,-71.067],"022":[42.349,-71.024],"023":[42.012,-70.888],"024":[42.359,-71.216],"025":[41.581,-70.546],"026":[41.732,-70.171],"027":[41.758,-71.081],"028":[41.674,-71.524],"029":[41.819,-71.432],"030":[42.882,-71.483],"031":[42.992,-71.459],"032":[43.516,-71.646],"033":[43.247,-71.563],"034":[42.914,-72.203],"035":[44.494,-71.483],"036":[43.167,-72.344],"037":[43.698,-72.151],"038":[43.376,-71.044],"039":[43.19,-70.706],"040":[43.733,-70.512],"041":[43.668,-70.247],"042":[44.313,-70.374],"043":[44.301,-69.78],"044":[45.122,-68.722],"045":[43.945,-69.573],"046":[44.538,-68.011],"047":[46.712,-68.266],"048":[44.108,-69.107],"049":[44.758,-69.655],"050":[43.822,-72.386],"051":[43.246,-72.614],"052":[43.033,-73.141],"053":[42.927,-72.739],"054":[44.59,-73.039],"055":[42.647,-71.184],"056":[44.332,-72.574],"057":[43.658,-73.055],"058":[44.668,-72.126],"059":[44.792,-71.651],"060":[41.86,-72.791],"061":[41.777,-72.702],"062":[41.826,-72.089],"063":[41.495,-72.037],"064":[41.434,-72.782],"065":[41.322,-72.93],"066":[41.193,-73.193],"067":[41.633,-73.16],"068":[41.213,-73.423],"069":[41.062,-73.539],"070":[40.759,-74.229],"071":[40.751,-74.196],"072":[40.666,-74.225],"073":[40.728,-74.068],"074":[41.045,-74.303],"075":[40.941,-74.196],"076":[40.927,-74.02],"077":[40.31,-74.108],"078":[40.935,-74.76],"079":[40.744,-74.521],"080":[39.823,-74.985],"081":[39.932,-75.087],"082":[39.267,-74.682],"083":[39.428,-75.03],"084":[39.348,-74.466],"085":[40.277,-74.668],"086":[40.25,-74.719],"087":[39.983,-74.144],"088":[40.538,-74.629],"089":[40.48,-74.446],"100":[40.762,-73.978],"101":[40.768,-73.977],"102":[40.734,-73.998],"103":[40.587,-74.147],"104":[40.849,-73.878],"105":[41.195,-73.775],"106":[41.047,-73.765],"107":[40.947,-73.858],"108":[40.916,-73.789],"109":[41.261,-74.169],"110":[40.754,-73.678],"111":[40.756,-73.931],"112":[40.652,-73.955],"113":[40.743,-73.838],"114":[40.686,-73.805],"115":[40.708,-73.638],"116":[40.599,-73.821],"117":[40.803,-73.246],"118":[40.77,-73.522],"119":[40.923,-72.552],"120":[42.686,-73.939],"121":[42.689,-73.929],"122":[42.659,-73.764],"123":[42.813,-73.948],"124":[42.083,-74.205],"125":[41.764,-73.862],"126":[41.728,-73.815],"127":[41.688,-74.767],"128":[43.494,-73.717],"129":[44.566,-73.916],"130":[42.981,-76.189],"131":[43.068,-76.269],"132":[43.048,-76.159],"133":[43.154,-75.229],"134":[43.112,-75.274],"135":[43.1,-75.232],"136":[44.293,-75.529],"137":[42.252,-75.538],"138":[42.341,-75.581],"139":[42.113,-75.894],"140":[42.8,-78.632],"141":[42.82,-78.721],"142":[42.869,-78.845],"143":[43.097,-79.027],"144":[42.973,-77.613],"145":[42.949,-77.49],"146":[43.198,-77.637],"147":[42.201,-78.865],"148":[42.311,-77.11],"149":[42.106,-76.819],"150":[40.469,-80.06],"151":[40.425,-79.935],"152":[40.441,-80.004],"153":[40.042,-80.164],"154":[39.953,-79.75],"155":[39.974,-78.888],"156":[40.317,-79.537],"157":[40.729,-79.029],"158":[41.251,-78.709],"159":[40.356,-78.858],"160":[40.936,-79.885],"161":[41.151,-80.348],"162":[41.019,-79.386],"163":[41.576,-79.552],"164":[41.891,-80.028],"165":[42.134,-80.072],"166":[40.482,-78.352],"167":[41.809,-78.5],"168":[40.938,-77.995],"169":[41.829,-77.265],"170":[40.401,-77.036],"171":[40.278,-76.863],"172":[40.0,-77.766],"173":[39.899,-76.873],"174":[39.965,-76.697],"175":[40.055,-76.238],"176":[40.041,-76.309],"177":[41.288,-77.12],"178":[40.882,-76.805],"179":[40.708,-76.276],"180":[40.633,-75.457],"181":[40.602,-75.51],"182":[40.915,-75.95],"183":[41.08,-75.238],"184":[41.563,-75.408],"185":[41.404,-75.667],"186":[41.312,-76.055],"187":[41.255,-75.885],"188":[41.821,-76.08],"189":[40.35,-75.179],"190":[40.01,-75.221],"191":[39.991,-75.144],"192":[40.002,-75.118],"193":[39.926,-75.717],"194":[40.174,-75.426],"195":[40.409,-75.886],"196":[40.348,-75.947],"197":[39.628,-75.639],"198":[39.702,-75.569],"199":[38.875,-75.436],"200":[38.901,-77.02],"201":[38.924,-77.591],"202":[38.895,-77.02],"203":[38.893,-77.019],"204":[38.895,-77.022],"205":[38.895,-77.027],"206":[38.405,-76.731],"207":[38.912,-76.829],"208":[39.11,-77.164],"209":[39.014,-77.019],"210":[39.368,-76.572],"211":[39.386,-76.645],"212":[39.312,-76.613],"214":[38.991,-76.523],"215":[39.589,-78.972],"216":[38.861,-76.05],"217":[39.496,-77.481],"218":[38.271,-75.61],"219":[39.566,-75.949],"220":[38.831,-77.253],"221":[38.789,-77.252],"222":[38.875,-77.097],"223":[38.797,-77.087],"224":[38.125,-77.067],"225":[38.046,-77.005],"226":[39.028,-78.22],"227":[38.472,-78.057],"228":[38.559,-78.818],"229":[38.036,-78.575],"230":[37.585,-77.126],"231":[37.546,-77.036],"232":[37.52,-77.464],"233":[37.369,-75.958],"234":[37.24,-76.002],"235":[36.897,-76.258],"236":[37.107,-76.441],"237":[36.84,-76.344],"238":[36.969,-77.427],"239":[37.016,-78.415],"240":[37.196,-80.044],"241":[37.08,-80.147],"242":[36.835,-82.471],"243":[36.842,-81.135],"244":[38.081,-79.358],"245":[37.148,-79.129],"246":[37.202,-81.798],"247":[37.398,-81.218],"248":[37.469,-81.64],"249":[37.847,-80.428],"250":[38.205,-81.493],"251":[38.232,-81.525],"252":[38.616,-81.557],"253":[38.343,-81.618],"254":[39.401,-78.041],"255":[38.292,-82.174],"256":[37.761,-82.05],"257":[38.415,-82.342],"258":[37.792,-81.213],"259":[37.783,-81.069],"260":[40.172,-80.627],"261":[39.221,-81.29],"262":[38.771,-80.06],"263":[39.202,-80.523],"264":[39.257,-80.402],"265":[39.573,-80.109],"266":[38.461,-80.807],"267":[39.359,-78.963],"268":[38.948,-79.016],"270":[36.254,-80.397],"271":[36.066,-80.241],"272":[35.891,-79.695],"273":[35.942,-79.641],"274":[36.079,-79.804],"275":[35.878,-78.571],"276":[35.809,-78.634],"277":[36.02,-78.891],"278":[35.908,-77.433],"279":[36.103,-76.194],"280":[35.368,-81.015],"281":[35.292,-80.77],"282":[35.229,-80.824],"283":[34.984,-78.988],"284":[34.297,-78.199],"285":[35.006,-77.116],"286":[36.069,-81.372],"287":[35.443,-82.684],"288":[35.6,-82.544],"289":[35.077,-83.945],"290":[33.966,-80.818],"291":[33.891,-80.88],"292":[34.016,-81.008],"293":[34.864,-81.905],"294":[32.964,-80.1],"295":[34.063,-79.408],"296":[34.677,-82.569],"297":[34.884,-80.947],"298":[33.524,-81.763],"299":[32.54,-80.902],"300":[33.879,-84.185],"301":[34.022,-84.867],"302":[33.328,-84.475],"303":[33.809,-84.387],"304":[32.415,-82.12],"305":[34.516,-83.724],"306":[33.889,-83.269],"307":[34.761,-85.09],"308":[33.343,-82.356],"309":[33.433,-82.075],"310":[32.597,-83.461],"311":[33.834,-84.395],"312":[32.819,-83.665],"313":[31.915,-81.42],"314":[32.025,-81.098],"315":[31.342,-82.13],"316":[30.987,-83.206],"317":[31.459,-83.87],"318":[32.518,-84.721],"319":[32.484,-84.931],"320":[30.164,-82.124],"321":[29.308,-81.428],"322":[30.307,-81.63],"323":[30.336,-84.267],"324":[30.496,-85.567],"325":[30.536,-86.992],"326":[29.594,-82.456],"327":[28.778,-81.31],"328":[28.518,-81.307],"329":[28.026,-80.591],"330":[25.775,-80.409],"331":[25.771,-80.262],"332":[25.774,-80.199],"333":[26.128,-80.213],"334":[26.607,-80.175],"335":[28.094,-82.27],"336":[27.943,-82.462],"337":[27.865,-82.73],"338":[27.895,-81.709],"339":[26.694,-81.9],"341":[26.144,-81.658],"342":[27.31,-82.424],"344":[29.016,-82.316],"346":[28.302,-82.611],"347":[28.496,-81.607],"349":[27.303,-80.388],"350":[33.573,-86.702],"351":[33.495,-86.632],"352":[33.516,-86.844],"354":[33.137,-87.727],"355":[33.968,-87.644],"356":[34.702,-87.299],"357":[34.738,-86.354],"358":[34.725,-86.579],"359":[34.281,-85.95],"360":[32.156,-86.139],"361":[32.303,-86.245],"362":[33.581,-85.703],"363":[31.289,-85.547],"364":[31.408,-87.068],"365":[30.86,-87.942],"366":[30.683,-88.123],"367":[32.318,-87.378],"368":[32.573,-85.328],"369":[32.142,-88.249],"370":[36.122,-86.847],"371":[36.06,-86.709],"372":[36.166,-86.786],"373":[35.271,-85.349],"374":[35.041,-85.284],"375":[35.159,-90.02],"376":[36.383,-82.356],"377":[36.161,-83.873],"378":[36.104,-83.778],"379":[35.972,-83.965],"380":[35.487,-89.473],"381":[35.158,-89.962],"382":[36.283,-88.736],"383":[35.608,-88.562],"384":[35.297,-87.297],"385":[36.188,-85.418],"386":[34.593,-89.829],"387":[33.568,-90.812],"388":[34.309,-88.659],"389":[33.773,-89.951],"390":[32.453,-90.156],"391":[32.362,-90.247],"392":[32.3,-90.178],"393":[32.374,-88.816],"394":[31.33,-89.302],"395":[30.442,-89.005],"396":[31.351,-90.543],"397":[33.529,-88.832],"398":[31.308,-84.648],"399":[33.891,-84.075],"400":[38.123,-85.33],"401":[37.869,-86.132],"402":[38.208,-85.696],"403":[38.062,-84.181],"404":[37.512,-84.428],"405":[38.03,-84.485],"406":[38.226,-84.874],"407":[37.0,-84.075],"408":[36.895,-83.279],"409":[36.932,-83.703],"410":[38.786,-84.401],"411":[38.365,-82.949],"412":[37.863,-82.712],"413":[37.567,-83.476],"414":[37.854,-83.174],"415":[37.446,-82.371],"416":[37.504,-82.738],"417":[37.24,-83.224],"418":[37.223,-82.861],"420":[36.904,-88.582],"421":[36.886,-86.064],"422":[36.958,-86.99],"423":[37.493,-87.033],"424":[37.513,-87.657],"425":[37.143,-84.695],"426":[36.778,-84.695],"427":[37.351,-85.75],"430":[40.164,-82.928],"431":[39.704,-82.901],"432":[39.99,-82.991],"433":[40.532,-83.35],"434":[41.463,-83.294],"435":[41.462,-84.133],"436":[41.673,-83.527],"437":[39.856,-81.696],"438":[40.265,-81.851],"439":[40.22,-80.854],"440":[41.548,-81.389],"441":[41.491,-81.668],"442":[41.116,-81.581],"443":[41.081,-81.531],"444":[41.094,-80.749],"445":[41.078,-80.68],"446":[40.671,-81.468],"447":[40.813,-81.378],"448":[41.031,-82.763],"449":[40.761,-82.517],"450":[39.392,-84.494],"451":[39.107,-83.926],"452":[39.171,-84.504],"453":[39.993,-84.278],"454":[39.747,-84.2],"455":[39.928,-83.808],"456":[38.934,-82.818],"457":[39.347,-81.806],"458":[40.826,-84.19],"459":[39.167,-84.538],"460":[40.147,-86.035],"461":[39.654,-86.162],"462":[39.8,-86.136],"463":[41.44,-87.161],"464":[41.56,-87.337],"465":[41.456,-86.054],"466":[41.664,-86.264],"467":[41.171,-85.196],"468":[41.09,-85.1],"469":[40.723,-86.1],"470":[39.157,-85.067],"471":[38.377,-85.968],"472":[39.064,-85.749],"473":[40.055,-85.209],"474":[39.045,-86.672],"475":[38.414,-86.997],"476":[38.151,-87.455],"477":[37.996,-87.57],"478":[39.462,-87.323],"479":[40.425,-87.061],"480":[42.674,-82.923],"481":[42.221,-83.501],"482":[42.346,-83.1],"483":[42.627,-83.319],"484":[43.244,-83.288],"485":[43.011,-83.706],"486":[43.805,-84.281],"487":[43.919,-83.575],"488":[43.03,-84.686],"489":[42.724,-84.571],"490":[42.219,-85.586],"491":[41.889,-86.435],"492":[42.046,-84.344],"493":[43.207,-85.545],"494":[43.23,-86.125],"495":[42.974,-85.62],"496":[44.545,-85.634],"497":[45.572,-84.541],"498":[46.065,-87.198],"499":[46.737,-88.826],"500":[41.704,-93.777],"501":[41.605,-93.465],"502":[41.678,-93.559],"503":[41.646,-93.599],"504":[43.164,-93.344],"505":[42.745,-94.444],"506":[42.63,-92.453],"507":[42.482,-92.324],"508":[40.962,-94.547],"509":[41.655,-93.581],"510":[42.6,-95.909],"511":[42.482,-96.389],"512":[43.265,-96.031],"513":[43.248,-95.131],"514":[42.093,-95.068],"515":[41.451,-95.556],"516":[40.73,-95.359],"520":[42.479,-90.95],"521":[43.155,-91.728],"522":[41.888,-91.747],"523":[41.903,-91.731],"524":[42.037,-91.636],"525":[40.969,-92.428],"526":[40.872,-91.45],"527":[41.661,-90.738],"528":[41.565,-90.592],"530":[43.454,-88.212],"531":[42.738,-88.224],"532":[43.048,-87.951],"534":[42.731,-87.777],"535":[42.945,-89.605],"537":[43.072,-89.402],"538":[42.818,-90.748],"539":[43.612,-89.525],"540":[45.066,-92.492],"541":[44.862,-88.241],"542":[44.548,-87.565],"543":[44.493,-88.026],"544":[44.87,-89.796],"545":[45.906,-89.878],"546":[43.859,-90.913],"547":[44.833,-91.592],"548":[46.026,-91.634],"549":[44.208,-88.826],"550":[45.049,-93.019],"551":[44.958,-93.103],"553":[44.983,-93.871],"554":[44.982,-93.296],"555":[44.967,-93.609],"556":[47.49,-91.008],"557":[47.179,-92.783],"558":[46.786,-92.127],"559":[43.905,-92.293],"560":[43.998,-93.971],"561":[43.899,-95.66],"562":[45.023,-95.657],"563":[45.752,-94.603],"564":[46.577,-94.502],"565":[46.841,-96.126],"566":[47.839,-94.448],"567":[48.428,-96.338],"570":[43.488,-97.009],"571":[43.59,-96.751],"572":[45.034,-97.113],"573":[43.803,-98.4],"574":[45.352,-98.736],"575":[43.748,-100.424],"576":[45.535,-101.371],"577":[44.092,-103.086],"580":[46.678,-97.305],"581":[46.87,-96.802],"582":[48.212,-97.606],"583":[48.364,-99.196],"584":[46.952,-99.018],"585":[46.787,-100.904],"586":[46.773,-102.904],"587":[48.357,-101.562],"588":[48.242,-103.511],"590":[45.82,-108.668],"591":[45.797,-108.516],"592":[48.322,-105.302],"593":[46.312,-105.372],"594":[47.736,-111.221],"595":[48.494,-109.421],"596":[46.55,-111.92],"597":[45.687,-112.142],"598":[47.014,-114.269],"599":[48.317,-114.456],"600":[42.222,-87.996],"601":[41.968,-88.214],"602":[42.047,-87.692],"603":[41.898,-87.819],"604":[41.526,-87.91],"605":[41.736,-88.29],"606":[41.855,-87.676],"607":[41.948,-87.774],"608":[41.72,-87.707],"609":[40.824,-87.93],"610":[42.205,-89.525],"611":[42.297,-89.097],"612":[41.494,-90.357],"613":[41.343,-89.208],"614":[40.839,-90.413],"615":[40.687,-89.697],"616":[40.72,-89.633],"617":[40.502,-88.923],"618":[40.104,-88.126],"619":[39.678,-88.217],"620":[39.056,-89.999],"622":[38.436,-89.796],"623":[40.032,-91.057],"624":[39.05,-88.21],"625":[39.708,-89.215],"626":[39.825,-89.992],"627":[39.776,-89.619],"628":[38.306,-88.675],"629":[37.553,-88.986],"630":[38.448,-90.661],"631":[38.64,-90.286],"633":[38.946,-91.009],"634":[39.972,-91.781],"635":[40.199,-92.591],"636":[37.653,-90.624],"637":[37.327,-89.767],"638":[36.498,-89.786],"639":[36.841,-90.516],"640":[39.089,-94.221],"641":[39.119,-94.568],"644":[40.11,-94.686],"645":[39.75,-94.837],"646":[39.868,-93.571],"647":[38.094,-94.216],"648":[36.962,-94.363],"649":[39.1,-94.579],"650":[38.458,-92.278],"651":[38.57,-92.185],"652":[39.184,-92.385],"653":[38.76,-93.248],"654":[37.69,-91.815],"655":[37.635,-91.909],"656":[37.058,-93.123],"657":[37.061,-93.009],"658":[37.216,-93.303],"660":[38.924,-95.109],"661":[39.103,-94.695],"662":[38.963,-94.71],"664":[39.388,-96.061],"665":[39.327,-96.108],"666":[39.043,-95.705],"667":[37.596,-95.093],"668":[38.355,-96.377],"669":[39.782,-97.71],"670":[37.555,-97.596],"671":[37.551,-97.67],"672":[37.692,-97.341],"673":[37.192,-95.759],"674":[38.939,-97.742],"675":[38.231,-98.828],"676":[39.319,-99.398],"677":[39.342,-101.078],"678":[37.798,-100.661],"679":[37.137,-101.384],"680":[41.472,-96.418],"681":[41.249,-96.004],"683":[40.469,-96.829],"684":[40.539,-96.614],"685":[40.818,-96.689],"686":[41.476,-97.511],"687":[42.393,-97.723],"688":[41.142,-98.92],"689":[40.348,-98.815],"690":[40.334,-100.868],"691":[41.277,-101.596],"692":[42.751,-100.609],"693":[42.157,-103.034],"700":[29.885,-90.163],"701":[29.957,-90.07],"703":[29.681,-90.777],"704":[30.568,-90.203],"705":[30.227,-92.124],"706":[30.385,-93.188],"707":[30.506,-91.171],"708":[30.477,-91.107],"710":[32.489,-93.479],"711":[32.553,-93.746],"712":[32.555,-92.004],"713":[31.317,-92.018],"714":[31.548,-92.857],"716":[33.702,-91.763],"717":[33.507,-92.808],"718":[33.673,-93.826],"719":[34.397,-93.521],"720":[34.959,-91.988],"721":[34.9,-92.099],"722":[34.759,-92.345],"723":[35.114,-90.523],"724":[36.034,-90.741],"725":[36.001,-91.786],"726":[36.181,-92.866],"727":[36.172,-94.166],"728":[35.28,-93.388],"729":[35.342,-94.236],"730":[35.315,-97.737],"731":[35.495,-97.488],"733":[30.326,-97.771],"734":[34.234,-97.171],"735":[34.525,-98.723],"736":[35.504,-99.283],"737":[36.382,-98.115],"738":[36.463,-99.473],"739":[36.733,-101.531],"740":[36.256,-96.18],"741":[36.138,-95.97],"743":[36.543,-94.969],"744":[35.646,-95.44],"745":[34.668,-95.693],"746":[36.694,-97.153],"747":[34.013,-95.584],"748":[35.173,-96.692],"749":[35.212,-94.698],"750":[33.037,-96.787],"751":[32.555,-96.471],"752":[32.801,-96.793],"753":[32.768,-96.777],"754":[33.361,-95.807],"755":[33.278,-94.337],"756":[32.459,-94.636],"757":[32.257,-95.33],"758":[31.504,-95.699],"759":[31.3,-94.389],"760":[32.669,-97.343],"761":[32.764,-97.311],"762":[33.406,-97.278],"763":[33.803,-98.747],"764":[32.525,-98.46],"765":[31.091,-97.547],"766":[31.755,-97.035],"767":[31.552,-97.167],"768":[31.33,-99.326],"769":[31.419,-100.573],"770":[29.776,-95.414],"772":[29.825,-95.425],"773":[30.35,-95.342],"774":[29.48,-95.938],"775":[29.582,-95.044],"776":[30.09,-94.128],"777":[30.09,-94.144],"778":[30.667,-96.336],"779":[28.897,-96.924],"780":[28.953,-98.883],"781":[29.199,-97.981],"782":[29.464,-98.498],"783":[27.721,-97.841],"784":[27.762,-97.435],"785":[26.272,-98.051],"786":[30.278,-97.906],"787":[30.309,-97.762],"788":[29.261,-100.11],"789":[29.925,-96.817],"790":[35.341,-101.535],"791":[35.253,-101.866],"792":[34.272,-100.669],"793":[33.508,-102.179],"794":[33.574,-101.871],"795":[32.654,-100.2],"796":[32.444,-99.747],"797":[31.72,-102.466],"798":[30.773,-104.758],"799":[31.758,-106.397],"800":[39.795,-104.916],"801":[39.513,-104.837],"802":[39.741,-104.982],"803":[40.037,-105.303],"804":[39.834,-105.917],"805":[40.414,-105.13],"806":[40.326,-104.634],"807":[40.482,-103.086],"808":[39.084,-103.835],"809":[38.844,-104.768],"810":[37.914,-103.808],"811":[37.443,-106.203],"812":[38.509,-106.11],"813":[37.429,-108.429],"814":[38.434,-108.01],"815":[39.06,-108.61],"816":[39.697,-107.377],"820":[41.287,-105.058],"821":[44.796,-110.614],"822":[42.304,-104.546],"823":[41.646,-107.147],"824":[44.454,-108.377],"825":[43.137,-108.776],"826":[42.992,-106.602],"827":[44.345,-104.837],"828":[44.702,-106.844],"829":[41.741,-109.866],"830":[43.614,-110.721],"831":[42.538,-110.724],"832":[42.912,-112.379],"833":[42.825,-114.261],"834":[44.021,-112.129],"835":[46.167,-116.312],"836":[43.884,-116.338],"837":[43.546,-116.23],"838":[47.679,-116.556],"840":[40.631,-111.422],"841":[40.709,-111.895],"842":[41.25,-111.982],"843":[41.712,-112.087],"844":[41.238,-111.962],"845":[38.676,-110.276],"846":[39.552,-111.865],"847":[37.786,-112.717],"850":[33.497,-112.08],"851":[33.062,-111.518],"852":[33.439,-111.822],"853":[33.471,-112.888],"855":[33.331,-110.322],"856":[31.831,-110.47],"857":[32.231,-110.944],"859":[34.209,-109.903],"860":[35.698,-111.217],"863":[34.688,-112.288],"864":[35.221,-114.177],"865":[35.966,-109.453],"870":[35.222,-106.768],"871":[35.084,-106.646],"873":[35.502,-108.563],"874":[36.714,-108.249],"875":[36.104,-105.917],"876":[32.99,-106.97],"877":[36.032,-104.953],"878":[34.052,-107.757],"879":[32.964,-107.302],"880":[32.434,-107.523],"881":[34.201,-103.491],"882":[32.807,-103.891],"883":[33.253,-105.634],"884":[35.656,-103.79],"885":[31.695,-106.3],"889":[36.125,-114.896],"890":[36.483,-115.319],"891":[36.161,-115.185],"893":[39.235,-115.28],"894":[39.671,-119.105],"895":[39.536,-119.815],"897":[39.165,-119.776],"898":[41.071,-115.544],"900":[34.034,-118.284],"901":[34.052,-118.25],"902":[33.939,-118.353],"903":[33.914,-118.336],"904":[34.021,-118.489],"905":[33.811,-118.313],"906":[33.927,-118.034],"907":[33.798,-118.186],"908":[33.79,-118.196],"910":[34.18,-118.124],"911":[34.147,-118.139],"912":[34.162,-118.253],"913":[34.261,-118.576],"914":[34.18,-118.456],"915":[34.181,-118.313],"916":[34.145,-118.377],"917":[34.07,-117.849],"918":[34.091,-118.13],"919":[32.7,-116.865],"920":[33.096,-117.128],"921":[32.757,-117.139],"922":[33.604,-115.944],"923":[34.473,-117.004],"924":[34.119,-117.296],"925":[33.786,-117.206],"926":[33.63,-117.793],"927":[33.736,-117.865],"928":[33.842,-117.839],"930":[34.277,-119.107],"931":[34.419,-119.746],"932":[35.901,-119.217],"933":[35.335,-118.986],"934":[35.199,-120.589],"935":[35.524,-118.1],"936":[36.848,-119.704],"937":[36.755,-119.693],"938":[36.746,-119.64],"939":[36.514,-121.628],"940":[37.471,-122.268],"941":[37.769,-122.424],"942":[38.582,-121.494],"943":[37.439,-122.15],"944":[37.55,-122.309],"945":[37.94,-122.061],"946":[37.801,-122.243],"947":[37.873,-122.274],"948":[37.947,-122.333],"949":[38.078,-122.642],"950":[37.107,-121.875],"951":[37.321,-121.875],"952":[38.09,-121.001],"953":[37.633,-120.693],"954":[38.847,-123.037],"955":[40.734,-123.927],"956":[38.636,-121.275],"957":[38.852,-120.968],"958":[38.583,-121.444],"959":[39.495,-121.527],"960":[40.863,-122.268],"961":[39.898,-120.252],"970":[45.445,-122.267],"971":[45.534,-123.492],"972":[45.519,-122.664],"973":[44.76,-123.181],"974":[43.557,-123.46],"975":[42.376,-123.106],"976":[42.425,-121.221],"977":[43.857,-120.612],"978":[45.202,-118.621],"979":[43.876,-117.545],"980":[47.552,-122.158],"981":[47.604,-122.334],"982":[48.362,-122.311],"983":[47.443,-122.67],"984":[47.214,-122.456],"985":[46.935,-123.221],"986":[45.92,-122.515],"988":[47.854,-119.902],"989":[46.66,-120.539],"990":[47.622,-117.449],"991":[47.821,-117.985],"992":[47.665,-117.399],"993":[46.36,-118.979],"994":[46.219,-117.051]},"wh":[{"id":"LAX-01/02","label":"Ontario, CA","lat":34.032,"lng":-117.619,"zip":"91761"},{"id":"LAX-03","label":"Fontana, CA","lat":34.05,"lng":-117.471,"zip":"92337"},{"id":"EWR-01","label":"Edison, NJ","lat":40.578,"lng":-74.359,"zip":"08820"},{"id":"EWR-02","label":"Flemington, NJ","lat":40.518,"lng":-74.845,"zip":"08822"},{"id":"ATL-01","label":"Ellenwood, GA","lat":33.617,"lng":-84.294,"zip":"30294"},{"id":"ATL-02","label":"Braselton, GA","lat":34.139,"lng":-83.781,"zip":"30517"},{"id":"SAV-01","label":"Pooler, GA","lat":32.115,"lng":-81.252,"zip":"31322"},{"id":"HOU-01","label":"Houston, TX","lat":29.919,"lng":-95.557,"zip":"77064"},{"id":"CHI-01","label":"New Lenox, IL","lat":41.507,"lng":-87.963,"zip":"60451"}]};
var RES_FEE=6.45, FUEL_PCT=22, NPL_AHS_MULT=0.30, DIM_DIV=139;
var AHS={dim:{z2:29.50,z34:32.75,z56:38.50,z7:40.75},
wt:{z2:46,z34:50.25,z56:56.25,z7:58.75},
pkg:{z2:26.50,z34:30.75,z56:33,z7:33.75}};
var OVS={z2:255,z34:275,z56:320,z7:330};var $=function(id){return document.getElementById(id);};
var res=1;
var LAST=null; // last computed result, for the lead email
var UNLOCKED=false; // becomes true after lead captured (session only)function bucket(z){z=+z;return z===2?'z2':(z<=4?'z34':(z<=6?'z56':'z7'));}
function money(n){return '$'+n.toLocaleString('en-US',{minimumFractionDigits:2,maximumFractionDigits:2});}
function ceil(n){return Math.ceil(n-1e-9);}function compute(){
var unit=$('wtUnit').value, wRaw=parseFloat($('wt').value);
if(!(wRaw>0)){show(false);return;}
var actual=ceil(unit==='kg'?wRaw*2.20462:wRaw);var du=$('dimUnit').value, k=du==='cm'?(1/2.54):1;
var L=parseFloat($('dL').value)||0, W=parseFloat($('dW').value)||0, H=parseFloat($('dH').value)||0;
L=L>0?ceil(L*k):0; W=W>0?ceil(W*k):0; H=H>0?ceil(H*k):0;
var dims=[L,W,H].sort(function(a,b){return b-a;});
var longest=dims[0], second=dims[1], mind=dims[2];
var lg=longest+2*second+2*mind;
var cubic=L*W*H;
var dimLb=cubic>0?cubic/DIM_DIV:0;
var chargeable=ceil(Math.max(actual,dimLb));var zone=$('zone').value, b=bucket(zone);var unauth = longest>108 || lg>165 || actual>150;
var oversize = !unauth && (longest>96 || lg>130 || cubic>17280 || actual>110);
var ahsDim = !unauth && !oversize && (longest>48 || second>30 || lg>105 || cubic>10368);
var ahsWt = !unauth && !oversize && actual>50;var minBill = oversize?90:(ahsDim?40:0);
var billable = Math.max(chargeable, minBill);var flags=[];
var addon=0, addonLabel='';
if(oversize){addon=OVS[b];addonLabel='Oversize charge';flags.push('Oversize');}
else{
var cand=[];
if(ahsDim){cand.push({v:AHS.dim[b],t:'size'});}
if(ahsWt){cand.push({v:AHS.wt[b],t:'weight'});}
if(cand.length){cand.sort(function(x,y){return y.v-x.v;});addon=cand[0].v;addonLabel='Additional Handling ('+cand[0].t+')';flags.push('Add. Handling');}
}var dasFee=0,dasLabel='';
var resFee=res?RES_FEE:0;
var fuelPct=FUEL_PCT;var warn='';
if(unauth){warn='<b>Outside FedEx Ground limits.</b> Packages over 150 lb, over 108″ long, or over 165″ length+girth ship as freight, not parcel. This is exactly the bulky lane North Peak is built for. Contact us for a Freight Direct or LTL quote.';}
else if(billable>150){warn='<b>Billable weight exceeds 150 lb.</b> FedEx prorates per-pound above 150 lb (not in the standard table). Contact North Peak for a custom bulk quote.';}function side(tbl,ahsMult){
var base=(billable<=150 && tbl[billable])?tbl[billable][zone]:null;
if(base==null)return null;
var thisAddon=addon*ahsMult;
var sub=base+resFee+dasFee+thisAddon;
var fuel=sub*fuelPct/100;
return {base:base,addon:thisAddon,sub:sub,fuel:fuel,total:sub+fuel};
}
var fx=side(RATES.fedex,1), np=side(RATES.npl,NPL_AHS_MULT);render({actual:actual,dimLb:dimLb,billable:billable,chargeable:chargeable,minBill:minBill,
zone:zone,resFee:resFee,dasFee:dasFee,dasLabel:dasLabel,addon:addon,addonLabel:addonLabel,
fuelPct:fuelPct,flags:flags,warn:warn,unauth:unauth,fx:fx,np:np,hasDims:cubic>0,
inL:L,inW:W,inH:H});
}var MASK='$•••';
function lineHTML(o,sideKey,masked){
var s=o[sideKey];var h='';
function amt(v){return masked?MASK:money(v);}
h+='<div class="nplc-li"><span>Base rate · '+o.billable+' lb · Zone '+o.zone+'</span><span>'+amt(s.base)+'</span></div>';
if(o.resFee)h+='<div class="nplc-li"><span>Residential delivery</span><span>'+amt(o.resFee)+'</span></div>';
if(o.dasFee)h+='<div class="nplc-li"><span>'+o.dasLabel+'</span><span>'+amt(o.dasFee)+'</span></div>';
if(s.addon)h+='<div class="nplc-li"><span>'+o.addonLabel+'</span><span>'+amt(s.addon)+'</span></div>';
if(o.fuelPct>0)h+='<div class="nplc-li"><span>Fuel (est. ~'+o.fuelPct+'%)</span><span>'+amt(s.fuel)+'</span></div>';
return h;
}function render(o){
show(true);
var warnEl=$('nplc-warn');
if(o.warn){warnEl.hidden=false;warnEl.innerHTML=o.warn;}else{warnEl.hidden=true;}var chips='';
if(lastRoute)chips+='<span class="nplc-chip nplc-chip--flag">Optimized from '+lastRoute.wh.label+' \u00b7 Zone '+lastRoute.zone+'</span>';
chips+='<span class="nplc-chip">Billable <b>'+o.billable+' lb</b></span>';
if(o.hasDims)chips+='<span class="nplc-chip">Dim. wt <b>'+o.dimLb.toFixed(1)+' lb</b></span>';
chips+='<span class="nplc-chip">Actual <b>'+o.actual+' lb</b></span>';
if(o.minBill)chips+='<span class="nplc-chip nplc-chip--flag">Min bill '+o.minBill+' lb</span>';
o.flags.forEach(function(f){chips+='<span class="nplc-chip nplc-chip--flag">'+f+'</span>';});
$('nplc-chips').innerHTML=chips;var cards=$('nplc-cards');
if(!o.fx||!o.np){cards.style.display='none';$('nplc-save').style.display='none';LAST=null;return;}
cards.style.display='';$('nplc-save').style.display='';var save=o.fx.total-o.np.total, pct=o.fx.total>0?save/o.fx.total*100:0;
var pctStr=pct.toFixed(0)+'%';var masked=!UNLOCKED;// Both sides: line items show labels; amounts are masked ($•••) until unlocked,
// so neither the FedEx nor the North Peak dollar figure is visible pre-capture.
$('fx-lines').innerHTML=lineHTML(o,'fx',masked);
$('fx-total').innerHTML=masked?MASK:money(o.fx.total);$('np-lines').innerHTML=lineHTML(o,'np',masked);
$('np-total').innerHTML=masked?MASK:money(o.np.total);// savings strip: the % is the hook and stays visible; the dollar saving is hidden until unlocked
if(UNLOCKED){
$('nplc-save').innerHTML=
'<div class="nplc-save-l">Your saving with North Peak<b>'+money(save)+' less than FedEx published</b></div>'+
'<div class="nplc-save-pct">'+pctStr+'<small>lower</small></div>';
}else{
$('nplc-save').innerHTML=
'<div class="nplc-save-l">Your saving with North Peak<b>Unlock to see both rates</b></div>'+
'<div class="nplc-save-pct">'+pctStr+'<small>lower</small></div>';
}// lock overlay on the North Peak card
var lock=$('nplc-lock');
if(UNLOCKED){lock.hidden=true;}
else{lock.hidden=false;$('lock-pct').textContent=pctStr;}// save snapshot for the lead email
LAST={
actual:o.actual, billable:o.billable, dimLb:o.hasDims?o.dimLb.toFixed(1):'',
L:o.inL||'', W:o.inW||'', H:o.inH||'',
zip:($('zip').value||'').replace(/\D/g,''),
warehouse:lastRoute?lastRoute.wh.label:'(zone set manually)',
zone:o.zone, delivery:res?'Residential':'Commercial',
flags:o.flags.join(', ')||'None',
fxTotal:money(o.fx.total), npTotal:money(o.np.total),
save:money(save), pct:pctStr
};
}function show(on){$('nplc-empty').style.display=on?'none':'';$('nplc-result').hidden=!on;}var lastRoute=null;
function hav(a,b,c,d){var R=3958.8,p=Math.PI/180;
var x=Math.sin((c-a)*p/2);x*=x;
var y=Math.sin((d-b)*p/2);y*=y;
return 2*R*Math.asin(Math.sqrt(x+Math.cos(a*p)*Math.cos(c*p)*y));}
// FedEx zone assignment: official Zone Locator charts per origin warehouse
// (destination zip3 -> zone). Warehouse choice = lowest zone, ties broken by distance.
var ZRAW={"LAX-01/02":"n4g2n4g340f9g6f3gf4g2fg4f5gf12g21nf5g35f7g2fg4f6g18f7ef2efe7n3f41ef6n2e12fe6nd2e2ded4f40e10f6e21dede13dn6f10e2f6ef7e2fe10de36f2e12d2ed2e2d42nc14bc9bcn4d3c2d11n3b4c6na36b4c3bc6b4c13n3d5c2d10cd7n5","LAX-03":"n4g2n4g297fg17fg24f13gf4gf7g4f18g2f3g16nf5g2fn2g30f10gf9g10f2gf3g2f2e4fef2e9n3f40e3f2ef2n2e7dn2e9nd2e2ded4f35ef4e10f3ef2e21d3e10de2dn6f10e2f5e3f6e13de29de20d5e2d16c3d17cd5nc8n2b2cb2c6n2b2c10d3c2d6n3b4c6na34bab4c27n3d6cd10cd7n5","EWR-01/02":"n4a2n4a3b29c8b10a60b4a4b9a3b3cb6c4b7cb2c2b4a7ba22b6a3ba5baba2b20c4bc9bc10bcb2nc9bc9dc8d32e4d5eded23e2d9c4d7ed2e3de3d6c16nd5c2dn2c30d7c2dcdc2d6c13d7e4ded2e9n3d40e17fn2e6f8g6d40e10d3ed2e21fefe13fn6e23d3e7fe5fe25fe2f2e9f19g2f15gf5gf7g37n4f3g2f3g3f4g82n3g25n5","ATL-01":"n4d2n4d32e8d100c14d2cdcdc5d24c20dc22b2c2b3c20nb5c5b3c3ba3b3ab2ababa13b4a3b7c16nbnc4a4b2a7b5ab4a2cba3c2b4c2bc4bc3ba2c3b7c3b6ncb2c2b3n2c54d6c3d33cd38e3n2d2ede15nf3ef5gc10d3c22dc4d10c10d31e3n6c30d19cd5c2d40e24fe2f2e3f6g4nf25e21n3f5g4fng67n3g25n5","ATL-02":"n4d2n4d34ede4d30c4d63cd2c19dc10d10c3d2c45b4c2b8cb5c9nb8c2b4c2ba7b2ababa13b5a2b5c5d3c17b9ab2ab2c2bab4a2ca4c2b4c2bc4bc3ba2b10cb8ncb3cb3n2c41bc12d4c8d30c2d37e3n2d4e15nf3ef5gc10d2c23dc4d10c10d17ed12e4n6c30d19cd5cd29ed4e2de2d2e18fe5fe2f2e3f6g4nf26n4e3fe12n3f5g4fng67n3g25n5","SAV-01":"n4d2n4d33e2de4d30c5d65c8dc2dcd3cdcdc7d13c3d4c45bc26nb9cb10a3ba2b2a2b4ababa3ba5b3a3b2cb4c5b2cbcbcb6nc10b5c4bc4b2cb4c18b2c34d3c3d6c17d6c10d31e4d26ed4ed2ede9de17fn2e3fef9g6d29cd7c3d29ed4ede18n6c5d2c3d13c2d11ede2d28e2d10e3d2ed2ede8f2e3f3e5f21g7nf14gf9gf11nef3e2fefn3g78n3g25n5","HOU-01":"n4f2n4f37gf22e35f4e5f2ef10ef2e3f4e105d2e2d8ed5ede7nd5e5d3e3d38c2d24c12dc5dcd5cd4c5dc12d36e3d2e11d30e10d2e8d40e6de12d3e6n2d2ede20f6d36c4d8cd5c6d7c2dc4dcd2c2d14n6b6ab8ncb2c14ac13bc2b8a2b3cbab4a10b6a2bac5b2cd23ede12f4ne12de2d5e5d16c2d3n3e5f4e32f5ef31n3g5f5g7f8n5","CHI-01":"n4d2n4d37ed82c3d7c40d20c14dcdcd2c10d9c36d5c3d3c4d3cd2c2d2c4dc3d3cd18e5d4eded6nec10d2cd7c20d7cdcb7c3bc8nbc2b2c2b12cb4c4b9cb2a10b3ab5ab8a4ba3b9cb2cbc7n3ab6a13cb7cbc9bc15d3n2c2d7ne2d2e6a20b17c13b3c23d4c10d25nc2dc11d10c5dcd2cd29e7d2ed8e3d13e4n3ded2e2d3e6f4ne8n2f5ef3e5fe16de2den3f45gf4g3fg9f2g2f6g5n3f17gf7n5"};
var ZMAP={};(function(){var L={a:'2',b:'3',c:'4',d:'5',e:'6',f:'7',g:'8',n:'N'};for(var k in ZRAW){var s='',m,re=/([a-gn])(\d*)/g;while((m=re.exec(ZRAW[k]))){var t=L[m[1]],c=+m[2]||1;while(c--){s+=t;}}ZMAP[k]=s;}})();
function chartKey(id){return (id==='EWR-01'||id==='EWR-02')?'EWR-01/02':id;}
function zoneFor(whId,z3){var s=ZMAP[chartKey(whId)];if(!s)return null;var c=s.charAt(z3);return (c&&c!=='N')?+c:null;}
function route(z5){
var z=(z5||'').replace(/\D/g,'').slice(0,3);
if(z.length<3)return null;
var n=+z;
if((n>=995&&n<=999)||z==='967'||z==='968'||(n>=6&&n<=9)||z==='969')return {offshore:true};
var c=GEO.zip3[z];
var best=null,bz=99,bd=1e9;
for(var i=0;i<GEO.wh.length;i++){
var w=GEO.wh[i];var zn=zoneFor(w.id,n);if(zn===null)continue;
var d=c?hav(c[0],c[1],w.lat,w.lng):0;
if(zn<bz||(zn===bz&&d<bd)){bz=zn;bd=d;best=w;}
}
if(!best)return null;
return {wh:best,mi:Math.round(bd),zone:bz};
}
function zipLookup(){
var v=($('zip').value||'').replace(/\D/g,'');var msg=$('zipMsg');
if(v.length<5){lastRoute=null;return;}
var r=route(v);
if(r&&r.offshore){lastRoute=null;msg.innerHTML='<b>Alaska, Hawaii & U.S. territories</b> are custom-quoted \u2014 contact us for a rate.';show(false);return;}
if(r){lastRoute=r;$('zone').value=r.zone;
msg.innerHTML='Optimized to ship from our <b>'+r.wh.label+'</b> warehouse · <b>Zone '+r.zone+'</b>';compute();}
else{lastRoute=null;msg.textContent='ZIP not recognized \u2014 pick your zone from the menu.';}
}
['wt','wtUnit','dL','dW','dH','dimUnit','zone'].forEach(function(id){
$(id).addEventListener('input',compute);$(id).addEventListener('change',compute);
});
$('resBtn').addEventListener('click',function(){res=1;this.classList.add('is-on');$('comBtn').classList.remove('is-on');compute();});
$('comBtn').addEventListener('click',function(){res=0;this.classList.add('is-on');$('resBtn').classList.remove('is-on');compute();});
$('calcBtn').addEventListener('click',compute);
$('zip').addEventListener('input',zipLookup);
$('zone').addEventListener('change',function(){lastRoute=null;});// ================= LEAD GATE =================
// Submissions are emailed to LEAD_EMAIL via FormSubmit (no account / API key).
// ============ LEAD DELIVERY: Web3Forms ============
// Leads are emailed to the address tied to this access key in the Web3Forms dashboard
// (support@northpeaklogi.com). Web3Forms supports browser CORS, so no proxy/iframe needed.
var WEB3FORMS_KEY='e74806b5-4ca7-4fee-9afd-8064f654da77';
var LEAD_ENDPOINT='https://api.web3forms.com/submit';function openGate(){
var g=$('nplc-gate');
var pct=LAST?LAST.pct:'\u2014';
$('gate-pct').textContent=pct;
g.hidden=false;
var n=$('g_name'); if(n){setTimeout(function(){n.focus();},60);}
}
function closeGate(){$('nplc-gate').hidden=true;}
function gateError(msg){var e=$('nplc-gate-err');e.hidden=false;e.textContent=msg;}function unlock(){
UNLOCKED=true;
$('nplc-lock').hidden=true;
closeGate();
compute(); // re-render with numbers revealed
}function submitLead(){
var name=($('g_name').value||'').trim();
var company=($('g_company').value||'').trim();
var title=($('g_title').value||'').trim();
var email=($('g_email').value||'').trim();
var phone=($('g_phone').value||'').trim();
var honey=$('g_honey')?($('g_honey').value||''):'';
if(honey){closeGate();return;} // bot trap: silently drop
if(!name||!company||!email){gateError('Please fill in your name, company, and work email.');return;}
if(!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(email)){gateError('Please enter a valid work email.');return;}var btn=$('gate-submit'); btn.disabled=true; btn.textContent='Unlocking\u2026';
var L=LAST||{};
var fields={
access_key:WEB3FORMS_KEY,
subject:'New calculator lead: '+company+' ('+name+')',
from_name:'North Peak Calculator',
Name:name, Company:company, Title:title||'(not provided)',
Email:email, Phone:phone||'(not provided)',
'Actual weight (lb)':L.actual||'', 'Billable weight (lb)':L.billable||'',
'Dim weight (lb)':L.dimLb||'(no dims entered)',
'Dimensions in LWH':(L.L&&L.W&&L.H)?(L.L+' x '+L.W+' x '+L.H):'(not entered)',
'Destination ZIP':L.zip||'(not entered)',
'Optimized warehouse':L.warehouse||'', 'FedEx zone':L.zone||'',
'Delivery type':L.delivery||'', 'Surcharge flags':L.flags||'None',
'FedEx published total':L.fxTotal||'', 'North Peak total':L.npTotal||'',
'Saving vs FedEx':L.save||'', 'Percent lower':L.pct||''
};// Never leave the user stuck: unlock within 6s no matter what.
var done=false;
function finish(){ if(done)return; done=true; unlock(); btn.disabled=false; btn.textContent='Unlock my North Peak rate'; }
var failsafe=setTimeout(finish,6000);fetch(LEAD_ENDPOINT,{
method:'POST',
headers:{'Content-Type':'application/json','Accept':'application/json'},
body:JSON.stringify(fields)
}).then(function(){ clearTimeout(failsafe); finish(); })
.catch(function(){ clearTimeout(failsafe); finish(); });
}$('lock-btn').addEventListener('click',openGate);
$('gate-submit').addEventListener('click',submitLead);
$('gate-x').addEventListener('click',closeGate);
$('nplc-gate').addEventListener('click',function(e){if(e.target===this)closeGate();});})();