In restaurants often times 여기요 is used too since the waiters are expected to come to you. It means roughly "Here! (This table needs attention)". 저기요 is more for when you want to grab the attention of someone in general, so it's roughly "(Excuse me) over there!".