I would like to plot a marker using the Folium library but the data I have is in ETRS89 and Folium does not accept that projection. I am having problems transforming from EPSG25830 (ETRS89) to EPSG3857. I have read and followed step by step the tutorial in PyProj web and different ways of declaring the projections but something does not add up.
My code is:
from pyproj import CRS
from pyproj import Transformer
crs_in = CRS.from_epsg("25830")
crs_out = CRS.from_epsg("3857")
transformer = Transformer.from_crs(crs_in, crs_out)
print(transformer.transform(582040.535326,4.797240e+06))
(-221319.72875795467, 5361346.317915058)
That is weird because it should look like 43.259404, -2.026318 (not the same point, but very close) so I check the other way around:
transformer_inv = Transformer.from_crs(crs_out, crs_in)
print(transformer_inv.transform(43.259404, -2.026318))
(834021.8587713321, -2.0147284128379286)
I do not understand what is happening or where I am wrong.
