You asked:

is herzliyya east of alofi

Yes. Herzliya is east of Alofi.
Herzliya
Herzliya
Herzliya

Alofi
Alofi
Alofi