You are not going to get 500m from any router 100m is the number you see from router manufactures and you get nowhere near that.
That is a huge distance sounds like it is another building on a large property.
Pretty much you are going to have to use directional outdoor bridge equipment to connect the buildings and then run a AP in the remote building. You can look at devices from ubiquiti. It depends how much money you want to spend and how much speed you want.