Alternative for obsolete JQ1P-B-24V

Looking for an alternative for JQ1P-B-24V. You can look at DigiKey part number Z222-ND . The Omron part number is G5Q-1 DC24 located on this link:

Please review the data sheet to ensure the alternative will work for your application.