
Running route generation for: 2020-07-13
totals results in db %s 22
Client_id=296,order_ids=5,6,15,16 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=29446 who now has 4 orders 

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

Client_id=410,order_ids=11 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=2364 who now has 5 orders 

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

Client_id=22,order_ids=13 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=154 who now has 6 orders 

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

Client_id=82,order_ids=26,37 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=76 at distance=31368 who now has 2 orders 

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

Client_id=108,order_ids=42,44 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=73 at distance=24755 who now has 2 orders 

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

Client_id=282,order_ids=39 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=73 at distance=10952 who now has 3 orders 

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

Client_id=178,order_ids=43 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=73 at distance=3374 who now has 4 orders 

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

Client_id=122,order_ids=41 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=73 at distance=1490 who now has 5 orders 

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

Client_id=293,order_ids=20,21 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=23840 who now has 8 orders 

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

Client_id=264,order_ids=51,52,53 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=74 at distance=25275 who now has 3 orders 

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

Client_id=193,order_ids=48 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=76 at distance=17235 who now has 3 orders 

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

Client_id=20,order_ids=10 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=74 at distance=6929 who now has 4 orders 

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

Client_id=21,order_ids=40,45,47,49,50 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=76 at distance=4736 who now has 8 orders 

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

Client_id=205,order_ids=3 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=73 at distance=17355 who now has 6 orders 

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

Client_id=261,order_ids=9,35 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=13559 who now has 10 orders 

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

Client_id=56,order_ids=23,24,25,30,31,32 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=4322 who now has 16 orders 

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

Client_id=196,order_ids=29 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=5546 who now has 17 orders 

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

Client_id=64,order_ids=18 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=12774 who now has 18 orders 

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

Client_id=27,order_ids=46 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=12773 who now has 19 orders 

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

Client_id=271,order_ids=7,8,12,14 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=8308 who now has 23 orders 

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

Client_id=273,order_ids=17 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=0 who now has 24 orders 

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

Client_id=422,order_ids=1,2,19,22,27,28,33,34,36,38 has available techs ['76', '75', '74', '73'] - 
It is allocated to tech_ids=75 at distance=4827 who now has 34 orders 

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

0
['45.0335056', '-92.8234167', 0, '26,37']

*********
1
['45.033002', '-93.0245041', 0, '48']

*********
2
['44.9988866', '-93.0239644', 0, '40,45,47,49,50']

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

[['45.0335056', '-92.8234167', 0, '26,37'], ['45.033002', '-93.0245041', 0, '48'], ['44.9988866', '-93.0239644', 0, '40,45,47,49,50']]
*************** PREFERRED WAYPOINTS ***************

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

https://maps.googleapis.com/maps/api/directions/json?origin=45.0335056,-92.8234167&destination=44.94909879999999,-93.1000226&waypoints=optimize:true|45.033002,-93.0245041|44.9988866,-93.0239644|
putting 1 to 1
putting 2 to 2
************** CURRENT STOPS FILLED ******************

[['45.0335056', '-92.8234167', 0, '26,37'], ['45.033002', '-93.0245041', 1, '48'], ['44.9988866', '-93.0239644', 2, '40,45,47,49,50']]
0
['44.7270698', '-92.838478', 0, '5,6,15,16']

*********
1
['44.7293716', '-92.8638671', 0, '11']

*********
2
['44.7300985', '-92.8655427', 0, '13']

*********
3
['44.8893911', '-92.9527974', 0, '20,21']

*********
4
['44.8654714', '-93.0645843', 0, '9,35']

*********
5
['44.8443525', '-93.0843639', 0, '23,24,25,30,31,32']

*********
6
['44.8855561', '-93.0698228', 0, '29']

*********
7
['44.8364073', '-93.1651806', 0, '18']

*********
8
['44.902941', '-93.163886', 0, '46']

*********
9
['44.9352248', '-93.2391087', 0, '7,8,12,14']

*********
10
['44.9352248', '-93.2391087', 0, '17']

*********
11
['44.93483', '-93.290091', 0, '1,2,19,22,27,28,33,34,36,38']

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

[['44.7270698', '-92.838478', 0, '5,6,15,16'], ['44.7293716', '-92.8638671', 0, '11'], ['44.7300985', '-92.8655427', 0, '13'], ['44.8893911', '-92.9527974', 0, '20,21'], ['44.8654714', '-93.0645843', 0, '9,35'], ['44.8443525', '-93.0843639', 0, '23,24,25,30,31,32'], ['44.8855561', '-93.0698228', 0, '29'], ['44.8364073', '-93.1651806', 0, '18'], ['44.902941', '-93.163886', 0, '46'], ['44.9352248', '-93.2391087', 0, '7,8,12,14'], ['44.9352248', '-93.2391087', 0, '17'], ['44.93483', '-93.290091', 0, '1,2,19,22,27,28,33,34,36,38']]
*************** PREFERRED WAYPOINTS ***************

[0, 1, 4, 6, 10, 8, 9, 7, 5, 3, 2]
*************** URL ***************

https://maps.googleapis.com/maps/api/directions/json?origin=44.7270698,-92.838478&destination=44.9220963,-92.9765453&waypoints=optimize:true|44.7293716,-92.8638671|44.7300985,-92.8655427|44.8893911,-92.9527974|44.8654714,-93.0645843|44.8443525,-93.0843639|44.8855561,-93.0698228|44.8364073,-93.1651806|44.902941,-93.163886|44.9352248,-93.2391087|44.9352248,-93.2391087|44.93483,-93.290091|
putting 1 to 1
putting 2 to 2
putting 5 to 3
putting 7 to 4
putting 11 to 5
putting 9 to 6
putting 10 to 7
putting 8 to 8
putting 6 to 9
putting 4 to 10
putting 3 to 11
************** CURRENT STOPS FILLED ******************

[['44.7270698', '-92.838478', 0, '5,6,15,16'], ['44.7293716', '-92.8638671', 1, '11'], ['44.7300985', '-92.8655427', 2, '13'], ['44.8893911', '-92.9527974', 11, '20,21'], ['44.8654714', '-93.0645843', 10, '9,35'], ['44.8443525', '-93.0843639', 3, '23,24,25,30,31,32'], ['44.8855561', '-93.0698228', 9, '29'], ['44.8364073', '-93.1651806', 4, '18'], ['44.902941', '-93.163886', 8, '46'], ['44.9352248', '-93.2391087', 6, '7,8,12,14'], ['44.9352248', '-93.2391087', 7, '17'], ['44.93483', '-93.290091', 5, '1,2,19,22,27,28,33,34,36,38']]
0
['44.7119037', '-93.2636975', 0, '51,52,53']

*********
1
['44.7367169', '-93.20971039999999', 0, '10']

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

[['44.7119037', '-93.2636975', 0, '51,52,53'], ['44.7367169', '-93.20971039999999', 0, '10']]
*************** PREFERRED WAYPOINTS ***************

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

https://maps.googleapis.com/maps/api/directions/json?origin=44.7119037,-93.2636975&destination=44.8859838,-93.3269645&waypoints=optimize:true|44.7367169,-93.20971039999999|
putting 1 to 1
************** CURRENT STOPS FILLED ******************

[['44.7119037', '-93.2636975', 0, '51,52,53'], ['44.7367169', '-93.20971039999999', 1, '10']]
0
['45.1803518', '-93.1098054', 0, '42,44']

*********
1
['45.1962258', '-93.209685', 0, '39']

*********
2
['45.1936494', '-93.2452421', 0, '43']

*********
3
['45.1844636', '-93.2379218', 0, '41']

*********
4
['45.1239433', '-93.3529586', 0, '3']

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

[['45.1803518', '-93.1098054', 0, '42,44'], ['45.1962258', '-93.209685', 0, '39'], ['45.1936494', '-93.2452421', 0, '43'], ['45.1844636', '-93.2379218', 0, '41'], ['45.1239433', '-93.3529586', 0, '3']]
*************** PREFERRED WAYPOINTS ***************

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

https://maps.googleapis.com/maps/api/directions/json?origin=45.1803518,-93.1098054&destination=45.321702,-93.0003869&waypoints=optimize:true|45.1962258,-93.209685|45.1936494,-93.2452421|45.1844636,-93.2379218|45.1239433,-93.3529586|
putting 1 to 1
putting 3 to 2
putting 2 to 3
putting 4 to 4
************** CURRENT STOPS FILLED ******************

[['45.1803518', '-93.1098054', 0, '42,44'], ['45.1962258', '-93.209685', 1, '39'], ['45.1936494', '-93.2452421', 3, '43'], ['45.1844636', '-93.2379218', 2, '41'], ['45.1239433', '-93.3529586', 4, '3']]
   client_id    latitude   longitude  order_ids     tech_ids allocated_tech_id  tech_stop_order
1  296        44.7270698  -92.838478  5,6,15,16  76,75,74,73  75                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  410        44.7293716  -92.8638671  11        76,75,74,73  75                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  22         44.7300985  -92.8655427  13        76,75,74,73  75                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  82         45.0335056  -92.8234167  26,37     76,75,74,73  76                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  108        45.1803518  -93.1098054  42,44     76,75,74,73  73                0              
   client_id    latitude   longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  282        45.1962258  -93.209685  39        76,75,74,73  73                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  178        45.1936494  -93.2452421  43        76,75,74,73  73                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  122        45.1844636  -93.2379218  41        76,75,74,73  73                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  293        44.8893911  -92.9527974  20,21     76,75,74,73  75                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  264        44.7119037  -93.2636975  51,52,53  76,75,74,73  74                0              
   client_id   latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  193        45.033002  -93.0245041  48        76,75,74,73  76                0              
   client_id    latitude           longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  20         44.7367169  -93.20971039999999  10        76,75,74,73  74                0              
   client_id    latitude    longitude       order_ids     tech_ids allocated_tech_id  tech_stop_order
1  21         44.9988866  -93.0239644  40,45,47,49,50  76,75,74,73  76                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  205        45.1239433  -93.3529586  3         76,75,74,73  73                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  261        44.8654714  -93.0645843  9,35      76,75,74,73  75                0              
   client_id    latitude    longitude          order_ids     tech_ids allocated_tech_id  tech_stop_order
1  56         44.8443525  -93.0843639  23,24,25,30,31,32  76,75,74,73  75                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  196        44.8855561  -93.0698228  29        76,75,74,73  75                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  64         44.8364073  -93.1651806  18        76,75,74,73  75                0              
   client_id   latitude   longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  27         44.902941  -93.163886  46        76,75,74,73  75                0              
   client_id    latitude    longitude  order_ids     tech_ids allocated_tech_id  tech_stop_order
1  271        44.9352248  -93.2391087  7,8,12,14  76,75,74,73  75                0              
   client_id    latitude    longitude order_ids     tech_ids allocated_tech_id  tech_stop_order
1  273        44.9352248  -93.2391087  17        76,75,74,73  75                0              
   client_id  latitude   longitude                    order_ids     tech_ids allocated_tech_id  tech_stop_order
1  422        44.93483  -93.290091  1,2,19,22,27,28,33,34,36,38  76,75,74,73  75                0              
