Create Alias URL to taxonomy term page with TID
If what you are asking is, "How can I create a link to a taxonomy term path alias if all I have is the TID," you can use drupal's built in l() function in any php function or template.  For example, if taxonomy/term/34 exists and location/texas exists as its alias and $tid equals 34...

&lt;?php print l('Texas Taxes', 'taxonomy/term/' . $tid); ?&gt;


...will create &lt;a href="/location/texas"&gt;Texas Taxes&lt;/a&gt; because l() will by default look up and use the alias for any system path.