def __init__(self, options, address_gen):
        """Batch geocode addresses using DSTK.

        :param url: URL to a DTSK server
        :param address_gen: A generator that yields tuples of (address, object),
        where address is an address string.
            The address is geocoded, and the object is passed thorugh to the
            result.
        :return:

        """
        import dstk

        if isinstance(options, basestring):
            # Single string, not an options dict
            options = {'apiBase': options}

        self.gen = address_gen

        self.dstk_client = dstk.DSTK(options)
def __init__ ( self , options , address_gen ) : import dstk if isinstance ( options , basestring ) : options = { 'apiBase' : options } self . gen = address_gen self . dstk_client = dstk . DSTK ( options )
Batch geocode addresses using DSTK.

        :param url: URL to a DTSK server
        :param address_gen: A generator that yields tuples of (address, object),
        where address is an address string.
            The address is geocoded, and the object is passed thorugh to the
            result.
        :return: