Esempio n. 1
0
    def __init__(self,
                 showDirections=True,
                 showTraffic=False,
                 directionsType=DirectionTypes.Driving,
                 callbacks=None,
                 source=None,
                 destination=None):
        '''
        * showDirections -- True to show the directions, False otherwise
        * showTraffic -- True to show the traffic, False otherwise
        * directionsType -- The type of directions to display
        * callbacks -- The callbacks to use
        * source -- The starting location
        * destination -- The ending destination

        '''
        SiriObject.__init__(self, "ShowMapPoints", "com.apple.ace.localsearch")

        self.showDirections = showDirections
        self.showTraffic = showTraffic
        self.directionsType = directionsType
        self.callbacks = [] if callbacks is None else callbacks
        self.itemSource = SiriObject() if source is None else source
        self.itemDestination = SiriObject() if destination is None else \
            destination