
Running route generation for: 2020-07-03
totals results in db %s 6
Client_id=24,order_ids=826 has available techs ['76', '66', '59'] - 
It is allocated to tech_ids=76 at distance=61137 who now has 1 orders 

###############################################

Client_id=65,order_ids=370,371,372,373,374,375,376,377,378,379,380,381 has available techs ['76', '66', '59'] - 
It is allocated to tech_ids=66 at distance=14300 who now has 12 orders 

###############################################

Client_id=20,order_ids=776,780,781,782,783,784,785,786,787,788,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,827,828,829,830,831,832,833,834,835,836,837,838,839,840,842,843,844,845,846,847,848 has available techs ['76', '66', '59'] - 
It is allocated to tech_ids=59 at distance=3946 who now has 65 orders 

###############################################

Client_id=251,order_ids=841 has available techs ['76', '66', '59'] - 
It is allocated to tech_ids=66 at distance=20817 who now has 13 orders 

###############################################

Client_id=417,order_ids=777,778,779,789,790,791 has available techs ['76', '66', '59'] - 
It is allocated to tech_ids=66 at distance=24972 who now has 19 orders 

###############################################

Client_id=163,order_ids=346,347,348,349,351,352 has available techs ['76', '66', '59'] - 
It is allocated to tech_ids=66 at distance=11595 who now has 25 orders 

###############################################

0
['45.3061089', '-93.5583266', 0, '826']

*********
************** CURRENT STOPS ******************

[['45.3061089', '-93.5583266', 0, '826']]
*************** PREFERRED WAYPOINTS ***************

[]
*************** URL ***************

https://maps.googleapis.com/maps/api/directions/json?origin=45.3061089,-93.5583266&destination=44.9537029,-93.0899578&waypoints=optimize:true|
************** CURRENT STOPS FILLED ******************

[['45.3061089', '-93.5583266', 0, '826']]
0
['44.8631658', '-93.0404815', 0, '370,371,372,373,374,375,376,377,378,379,380,381']

*********
1
['44.9549605', '-93.1792716', 0, '841']

*********
2
['44.868729', '-93.322069', 0, '777,778,779,789,790,791']

*********
3
['44.9364489', '-93.3369241', 0, '346,347,348,349,351,352']

*********
************** CURRENT STOPS ******************

[['44.8631658', '-93.0404815', 0, '370,371,372,373,374,375,376,377,378,379,380,381'], ['44.9549605', '-93.1792716', 0, '841'], ['44.868729', '-93.322069', 0, '777,778,779,789,790,791'], ['44.9364489', '-93.3369241', 0, '346,347,348,349,351,352']]
*************** PREFERRED WAYPOINTS ***************

[1, 2, 0]
*************** URL ***************

https://maps.googleapis.com/maps/api/directions/json?origin=44.8631658,-93.0404815&destination=44.94909879999999,-93.1000226&waypoints=optimize:true|44.9549605,-93.1792716|44.868729,-93.322069|44.9364489,-93.3369241|
putting 2 to 1
putting 3 to 2
putting 1 to 3
************** CURRENT STOPS FILLED ******************

[['44.8631658', '-93.0404815', 0, '370,371,372,373,374,375,376,377,378,379,380,381'], ['44.9549605', '-93.1792716', 3, '841'], ['44.868729', '-93.322069', 1, '777,778,779,789,790,791'], ['44.9364489', '-93.3369241', 2, '346,347,348,349,351,352']]
0
['44.7367169', '-93.20971039999999', 0, '776,780,781,782,783,784,785,786,787,788,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,827,828,829,830,831,832,833,834,835,836,837,838,839,840,842,843,844,845,846,847,848']

*********
************** CURRENT STOPS ******************

[['44.7367169', '-93.20971039999999', 0, '776,780,781,782,783,784,785,786,787,788,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,827,828,829,830,831,832,833,834,835,836,837,838,839,840,842,843,844,845,846,847,848']]
*************** PREFERRED WAYPOINTS ***************

[]
*************** URL ***************

https://maps.googleapis.com/maps/api/directions/json?origin=44.7367169,-93.20971039999999&destination=44.721218,-93.1893327&waypoints=optimize:true|
************** CURRENT STOPS FILLED ******************

[['44.7367169', '-93.20971039999999', 0, '776,780,781,782,783,784,785,786,787,788,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,827,828,829,830,831,832,833,834,835,836,837,838,839,840,842,843,844,845,846,847,848']]
   client_id    latitude    longitude order_ids  tech_ids allocated_tech_id  tech_stop_order
1  24         45.3061089  -93.5583266  826       76,66,59  76                0              
   client_id    latitude    longitude                                        order_ids  tech_ids allocated_tech_id  tech_stop_order
1  65         44.8631658  -93.0404815  370,371,372,373,374,375,376,377,378,379,380,381  76,66,59  66                0              
   client_id    latitude           longitude                                                                                                                                                                                                                                                            order_ids  tech_ids allocated_tech_id  tech_stop_order
1  20         44.7367169  -93.20971039999999  776,780,781,782,783,784,785,786,787,788,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,827,828,829,830,831,832,833,834,835,836,837,838,839,840,842,843,844,845,846,847,848  76,66,59  59                0              
   client_id    latitude    longitude order_ids  tech_ids allocated_tech_id  tech_stop_order
1  251        44.9549605  -93.1792716  841       76,66,59  66                0              
   client_id   latitude   longitude                order_ids  tech_ids allocated_tech_id  tech_stop_order
1  417        44.868729  -93.322069  777,778,779,789,790,791  76,66,59  66                0              
   client_id    latitude    longitude                order_ids  tech_ids allocated_tech_id  tech_stop_order
1  163        44.9364489  -93.3369241  346,347,348,349,351,352  76,66,59  66                0              
