コード例 #1
0
 def updateDirections(self):
     self.directions = getDirections(self.origin,self.destination,self.methodOfTransport,self.wayPoints)
     totalseconds=0
     etasOfMember=[]
     for leg in self.directions['routes'][0]['legs']:
         seconds, mins = self.getEtaOfLeg(leg)
         etasOfMember.append(seconds)
         totalseconds += seconds
     self.eta = totalseconds
     self.etaToMembers = etasOfMember
コード例 #2
0
def findRealisticPlaceToMeetLeader(poolMembers,poolMemberIndex,poolLeader,destination,lastPoint,places):
    placeNearestToLastPoint=0
    currentPoolRoute=poolMembers
    currentPoolRoute[poolMemberIndex][locationIndex]=placeNearestToLastPoint
    poolMemberDirections=getDirections(poolMembers[poolMemberIndex][locationIndex],destination,poolMembers[poolMemberIndex][methodIndex],)
    poolDirections=getDirections(poolMembers[poolMemberIndex][locationIndex],placeNearestToLastPoint,poolMembers[poolMemberIndex][methodIndex],)
コード例 #3
0
 def updateDirections(self):
     self.directions=getDirections(self.origin,self.destination,self.methodOfTransport,self.wayPoints)
コード例 #4
0
 def setDirections(self):
     self.directionsToMeetPoint=getDirections(self.origin,self.meetPoint.location,self.methodOfTransport,[])
コード例 #5
0
 def setDirections(self):
     self.directionsToMeetPoint = getDirections(self.origin,self.meetPoint.location,self.methodOfTransport,[])
     seconds , mins=self.getEtaOfLeg(self.directionsToMeetPoint['routes'][0]['legs'][0])
     self.eta=seconds