will this insert query take too long to run? I am bulk inserting from a node server to a psql database by constructing the query like 

let query = `INSERT INTO ${table} (timestamp, lattitude, longitude, type) VALUES `;
locationData.forEach(location =&gt; {
    query += `('${location.timestamp}', '${location.lattitude}', '${location.longitude}', '${type}'), `;
});


this api gets called every 3 minutes by a device that logs location every second, meaning atmost 180 rows will be inserted in each query. will it be a bottleneck?
As the others have said 180 rows is not a big deal.

That you are forming the 180 rows into a single insert command is a good thing, it will reduce both latency and the workload on the database.

Any computer capable of running Postgresql should have no problem with that work-load. this includes NAS boxes, cell-phones, and Raspberry Pis.