The calculated distance (air line) between Loja and Huaquillas is approximately 79 miles respectively 128 kilometers.
By car or train, the actual journey to Huaquillas is certainly longer, as only the direct route (as the crow flies) between Loja and Huaquillas has been calculated here.
Air line (approximately)
128 kilometers
69 nautical miles