How to assign email notifications based on order pickup location?

I have multiple locations.. I am looking for a solution to notifications to each location when an order is placed and they are the pickup location.

IE:

When Order 100 needs to pickup at location A then location A and myself get an email

When order 101 needs to pickup at location B then location b and myself get an email..

I am lost and this seems li

To achieve this you have to create a custom app which will subscribe the order webhook and extract the location details and send mail to desired users.

We can also build the same if interested,