Nice...febalci wrote: ↑Wednesday 13 February 2019 16:58Looks easy. Open the plugin.py in a text editor go to:
Line 212:
Underadd:Code: Select all
currentstat2, currentloc = a.getaddress(self.tomtomapikey,self.circleLatitude,self.circleLongitude)
Code: Select all
currentloc = currentloc.split(',',1)[0]
and the same on line 217. This assumes all your addresses are in the format like xxxx, xxxx, xxxx, xxxx and so theis command gets the first text before the first comma. Also these added lines should start on the same column with their previus lines and you should go there by pressing space bar, not tab... Like:Code: Select all
if self.tomtomapikey != 'Empty': currentstat, currentmin = a.getdistance(self.tomtomapikey,self.circleLatitude,self.circleLongitude,self.myHomelat,self.myHomelon) currentstat2, currentloc = a.getaddress(self.tomtomapikey,self.circleLatitude,self.circleLongitude) currentloc = currentloc.split(',',1)[0]
but it seems that there is no consistency with the location adresse...
Is it possible to truncate the line to ... lets say...20chars and end it with "..." ?