Best way to send data from Service to Roomdatabase

I’m working on a project where I need to connect to a server to get data and draw markers out of that data on a map, whenever the data changes, I need to update the map with the new positions.

I’m using a Roomdatabase, Livedata to observe the changes and a service that connects to the server and sends any update to the repository. But what would be the best way to go about this?

Thanks in advance

Source: Android Questions