def _add_city_constants(city_name, state_name, state_abbreviation,
                        identifiers_to_entities):
  """Add constants for fully and under-specified city."""
  _add_underspecified_city_constant(city_name, identifiers_to_entities)
  identifier = "cityid('%s','%s')" % (city_name, state_abbreviation)
  if identifier in identifiers_to_entities:
    return
  aliases = [
      "%s %s" % (city_name, state_name),
      "%s %s" % (city_name, state_abbreviation),
  ]
  identifiers_to_entities[identifier] = GeoEntity(
      identifier=identifier, attribute="cityid", aliases=aliases)
Add constants for fully and under-specified city.
language/compgen/nqg/tasks/geoquery/geobase_utils.py