notnilc20
Everyone has given you great information..
The one thing you have to determine is whether you want the compressor to be powered all the time or only when the engine is running.
If you want it all the time, you can take your power from the battery through a fuse to terminal 30 and switch that relay with your switch. Your switch can supply either power or ground to the relay terminal. Terminals 85 and 86 are the relay terminals that control tripping the relay. If the switch supplies power (+12vdc) the other terminal must be ground and vise-versa, your choice. Then run the power to your compressor from relay terminal 87.
If you only want it powered when the engine is running, I would wire in a relay that is energized with the ignition on. (Ignition power to terminal 85 on relay - ground on terminal 86) Then with the ignition on, the relay is tripped and connects terminal 30 to 87. Supply fused power to terminal 30 and connect terminal 87 to terminal 30 of the relay you are using with your switch. (Don't connect anything to terminal 87a of the relays. They are unused but the ignition relay has power to it at rest, the switch relay has power to 87a when the ignition is on.) All of this is to keep excessive power drain from your ignition power by isolating the ignition power from the accessories power demands.
If you are not running too many accessories, you could use this ignition relay for more than just the compressor, but don't "go overboard" with power demand.
If necessary, you could use another ignition relay for other accessory power demands with the ignition on, wired the same way.
If I have told you things you already know, please don't think I am talking down to you, I just don't want to be mis-understood AND there may be other reading this that need to know.
Good luck on your build.
RT