Traffic flow monitoring involves the capturing and dissemination of real-time traffic flow information for a road network. When a vehicle, a ferromagnetic object, travels along a road, it disturbs the ambient Earth’s magnetic field, causing its distortion. The resulting distortion carries vehicle signature containing traffic flow related information such as speed, count, direction, and classification. To extract such information in chaotic cities, a novel algorithm based on the resulting magnetic field distortion was developed using nonintrusive sensor localization. The algorithm extracts traffic flow information from resulting magnetic field distortions sensed by magnetic wireless sensor nodes located on the sides of the road. The model magnetic wireless sensor networks algorithm for local Earth’s magnetic field performance was evaluated through simulation using Dar es Salaam City traffic flow conditions. Simulation results for vehicular detection and count showed 93% and 87% success rates during normal and congested traffic states, respectively. Travel Time Index (TTI) was used as a congestion indicator, where different levels of congestion were evaluated depending on the traffic state with a performance of 87% and 88% success rates during normal and congested traffic flow, respectively.