Making deserialization consistent with detached location
Submitted by Saurabh_P
Link to original bug (#731896)
Description
In common deserialization method for the detached location it is picking the first element from the list of the locations having same station code. In some cases it is not consistent with serialization process so instead of choosing it randomly it'd be better to have the NEAREST weather station as its parent location.