Contextual localization through network traffic analysis