create a custom node token
Check this example code:

/**
* Implements hook_token_info().
*/
function yourmodulename_token_info() {  
  $info['tokens']['node']['city'] = array(
    'name' =&gt; t('Venue City'),
    'description' =&gt; t('Returns the Venue city (Location)'),
  );
  return

$info;
} 


/**
* Implements hook_tokens().
*/
function yourmodulename_tokens($type, $tokens, array $data = array(), array $options = array()) {
  $replacements = array();

  if ($type == 'node' &amp;&amp; !empty($data['node'])) {
    $node = $data['node'];
    if (isset(

$tokens['city'])) {
      $replacements[$tokens['city']] = pathauto_cleanstring($node-&gt;field_location['und'][0]['city']);//here I retrieve the value of the city in the location field.
    }
  }

  return $replacements;
}