Due to the way routing in the country works some requests are sent to data center locations that are not necessarily the closest geographically. For example, if we do not have a peering relationship with your network provider or if that cache location is under heavier load, we may manually route our self-service plans to other datacenters.
Most of the requests are sent to the physically closest cache location, but some requests are sent to nearby ones that are under a lower capacity. If you would like your zone to always be served by the closest geographic location and the highest priority of traffic, please consider upgrading to the enterprise plan by filling out an Enterprise Request Form
With that said we still would like to rule out any routing issues.
Could you please share the plain text output of the following command in plain text?
mtr <your-website.net>
Please make sure to replace <your-website.net>
with your actual website.
Please also test your website over at Where's it Up: API Make sure to select Madrid and Valencia and provide your result here.
Do you see the expected location if you test your connection with https://speed.cloudflare.com/ ?