The calculated distance (air line) between Šmarje pri Jelšah and Kranj is approximately 56 miles respectively 90 kilometers.
By car or train, the actual journey to Kranj is certainly longer, as only the direct route (as the crow flies) between Šmarje pri Jelšah and Kranj has been calculated here.
Air line (approximately)
90 kilometers
48 nautical miles