import folium
from pyproj import Transformer

# Define the transformation

transformer = Transformer.from_crs("EPSG:5174", "EPSG:4326")

# Sample EPSG:5174 coordinates (replace with your actual data)

x_5174 = 217712.166
y_5174 = 435725.757

# Transform to WGS84

lon, lat = transformer.transform(x_5174, y_5174)
# Create Folium map centered around the transformed coordinates

m = folium.Map(location=[lat, lon], zoom_start=13)

# Add a marker at the transformed coordinates

folium.Marker([lat, lon], popup="Transformed Point").add_to(m)

# Display the map (or save to an HTML file)

m.save("map_with_transformed_point.html")