fixed the issue, now you can specify location type as $edit['location_type'] = 1 or $edit['location_type'] = 'Home'
if location type is not specified, it take "Work" as default location type
if location type is not specified, it take "Work" as default location type, since "Work" is set as default location type in administer panel.
fixed the issue, now you can specify location type as
$edit['location_type'] = 1 or $edit['location_type'] = 'Home'