WARNING: This page is about a different car, the 2017 Mazda CX-5 and 2016 Mazda CX-5. However, it is still accessible from the selected car via links, so may be relevant.
The viewing direction of part-side connectors is from the terminal side.
Fig 1: Identifying Part-Side Connector
Courtesy of MAZDA MOTORS CORP.
* Part names are shown only when there are multiple connector drawings.