I was trying to use Mobile Push API to create Locations in Marketing Cloud. But I didn't understand how to use Location Attributes to pass Location-based parameters to the message context and/or application.

I don't know if there is an event handler you can subscribe to in order to achieve that. Fetching itself would require some reference between which location triggered the message and then retrieving these details via API through the call you refer to in your question 3.