Show multiple locations at once on google maps

Hello, how do I display the longitude and latitude locations that are saved in the database? I need to display it as it is in the attached photo. Like you’re tracing a route

Can you share code?