Create mesh block heat calculation

How to calculate number of trains, trams, buses near a mesh block.