Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
New Fastest Route Option
You can check this option for isodistances/motor vehicle. Without this option the shortest path will be calculated, all route will be taken. Checking this option the fastest route will be taken and the polygon will be smaller, this is because usually the fastest roads are longer than the other roads
  • Loading branch information
mmoscati committed May 16, 2018
1 parent 7570fca commit ed5398e
Show file tree
Hide file tree
Showing 4 changed files with 600 additions and 55 deletions.
3 changes: 3 additions & 0 deletions iso4app/iso4app.py
Expand Up @@ -383,11 +383,14 @@ def eventCbTravelType(self):
idx=self.dlg.comboTravelType.currentIndex()
self.dlg.checkBoxAllowBikeOnPedestrian.setEnabled(False)
self.dlg.checkBoxAllowPedBikeOnTrunk.setEnabled(False)
self.dlg.checkBoxFastestRoute.setEnabled(True)
if idx==1:
self.dlg.checkBoxAllowBikeOnPedestrian.setEnabled(True)
self.dlg.checkBoxAllowPedBikeOnTrunk.setEnabled(True)
self.dlg.checkBoxFastestRoute.setEnabled(False)
if idx==2:
self.dlg.checkBoxAllowPedBikeOnTrunk.setEnabled(True)
self.dlg.checkBoxFastestRoute.setEnabled(False)
manageSpeed(self)

def calculate_massive_isolines(self):
Expand Down
3 changes: 3 additions & 0 deletions iso4app/iso4appService.py
Expand Up @@ -99,6 +99,7 @@ def callIsoline(self):
checkBoxAvoidTolls=self.dlg.checkBoxAvoidTolls.isChecked()
checkBoxRestrictedArea=self.dlg.checkBoxRestrictedArea.isChecked()
checkBoxReduceQueueTime=self.dlg.checkBoxReduceQueueTime.isChecked()
checkBoxFastestRoute=self.dlg.checkBoxFastestRoute.isChecked()

restUrl='http://www.iso4app.net/rest/1.3/isoline.json?licKey='+aiKey
if rbIsochrone==True:
Expand Down Expand Up @@ -150,6 +151,8 @@ def callIsoline(self):

restUrl=restUrl+'&speedType='+speedType

if checkBoxFastestRoute:
restUrl=restUrl+'&fastestRouting=true'
if checkBoxReduceQueueTime:
restUrl=restUrl+'&reduceQueue=true'
if checkBoxAvoidTolls:
Expand Down

0 comments on commit ed5398e

Please sign in to comment.