Falconi,
Select all the devices from locator search using device search or based on global collection, select all the models in the output -> Right click -> Attribute editor -> search for location attribute -> Move this to right panel -> Provide the value.
Now to populate this on the device, we should discover the device with r/w snmp community string.