@property<EOL><INDENT>def url(self):<EOL><DEDENT>
url = "<STR_LIT>".format(key=self.api_key,<EOL>lat=self.latitude,<EOL>lon=self.longitude)<EOL>if isinstance(self._date, datetime):<EOL><INDENT>url += "<STR_LIT>".format(self._date)<EOL><DEDENT>url += "<STR_LIT>".format(self.units)<EOL>if self.lang != "<STR_LIT>":<EOL><INDENT>url += "<STR_LIT>".format(self.lang)<EOL><DEDENT>if len(self._exclude) > <NUM_LIT:0>:<EOL><INDENT>url += "<STR_LIT>"<EOL>for e in self._exclude:<EOL><INDENT>url += "<STR_LIT>".format(e)<EOL><DEDENT>url = url.strip("<STR_LIT:U+002C>")<EOL><DEDENT>if self._extend:<EOL><INDENT>url += "<STR_LIT>"<EOL><DEDENT>return url<EOL>
Build and returns a URL used to make a Dark Sky API call.