and located at one of the few watering holes , the ancient city had been an important trading post on the incense road , linking the frankincense groves of the coastal omani mountains to the markets of the rich cities of the north .