The calculated distance (air line) between Teresina and Pedro II is approximately 103 miles respectively 166 kilometers.
By car or train, the actual journey to Pedro II is certainly longer, as only the direct route (as the crow flies) between Teresina and Pedro II has been calculated here.